Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
308 lines (287 loc) · 24.6 KB
/
Copy pathindex.html
File metadata and controls
308 lines (287 loc) · 24.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>try{if(localStorage.getItem('omnipython-theme')==='light'){document.documentElement.setAttribute('data-theme','light');}}catch(e){}</script>
<!-- PYDEVICES-HEAD-TAGS: START -->
<title>OmniPython: one Python program on boards, desktops, browsers and phones</title>
<meta name="description" content="OmniPython is a set of Python libraries and C modules that run unchanged on MicroPython, CircuitPython and CPython. Give each board or host a small board_config, and the same program drives its display, input and audio.">
<meta property="og:title" content="OmniPython: one Python program on boards, desktops, browsers and phones">
<meta property="og:description" content="OmniPython is a set of Python libraries and C modules that run unchanged on MicroPython, CircuitPython and CPython. Give each board or host a small board_config, and the same program drives its display, input and audio.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://omnipython.org/">
<meta property="og:image" content="https://omnipython.org/assets/img/omnipython-social.png">
<link rel="icon" href="/assets/img/favicon.svg" type="image/svg+xml">
<link rel="alternate icon" href="/assets/img/favicon.ico" sizes="16x16 32x32 48x48">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&display=swap">
<!-- PYDEVICES-HEAD-TAGS: END -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap">
<link rel="stylesheet" href="/assets/chrome/site.css">
</head>
<body>
<!-- PYDEVICES-ABOVE-THE-FOLD: START -->
<div id="pydevices-site-header"></div>
<!-- Hero Banner -->
<section class="hero wrap has-hero-stage">
<div class="hero-main">
<div class="hero-lead">
<div class="logo-badge logo-badge--free"><img src="/assets/img/omnipython-mark.svg" alt="OmniPython" width="112" height="112"></div>
<span class="eyebrow" style="color: var(--accent);">OmniPython</span>
</div>
<h1>One Python program, on boards, desktops, browsers and phones.</h1>
<p>OmniPython is a set of Python libraries and C modules that run unchanged on MicroPython, CircuitPython and CPython. Give each board or host a small board_config, and the same program drives its display, input and audio.</p>
<p>Install it with pip on a desktop or omip on a board: <a href="https://docs.omnipython.org/en/latest/install.html">the install page</a> has the line for each. Or try it first, with nothing installed: the watch on this page is Python running in your browser, and every app in the <a href="https://gallery.omnipython.org/">gallery</a> runs the same way.</p>
<div class="cta">
<a class="btn primary" href="https://docs.omnipython.org/">
Get started
</a>
<a class="btn" style="border-color: var(--accent); color: var(--accent);" href="#try-it">Try it now</a>
<a class="btn" style="border-color: var(--accent); color: var(--accent);" href="https://lib.omnipython.org/">Packages</a>
<a class="btn" style="border-color: var(--accent); color: var(--accent);" href="https://github.com/PyDevices">GitHub</a>
</div>
</div>
<div class="hero-stage">
<div class="hero-canvas-wrap" data-hero-canvas="hero_canvas" data-hero-app="watch" data-hero-app-url="https://omnipython.org/assets/apps/watch.py">
<div class="hero-canvas-circle">
<div class="hero-canvas-loader">
<div class="hero-spinner"></div>
<span class="hero-canvas-status">Live Pure-Python Device</span>
</div>
<canvas id="hero_canvas" width="240" height="240" tabindex="0"></canvas>
</div>
</div>
<figure class="hero-art"><img src="/assets/img/huey-hero.svg" alt="Huey, a blue chameleon with lime spots, waving from a jumper wire" width="640" height="420"><figcaption><a href="https://gallery.omnipython.org/perch/">Huey</a>, OmniPython's mascot</figcaption></figure>
</div>
</section>
<!-- PYDEVICES-ABOVE-THE-FOLD: END -->
<!-- PYDEVICES-PORTAL-TRY: START -->
<section class="try-it wrap" id="try-it" aria-labelledby="try-it-heading">
<div class="try-it-head">
<h2 id="try-it-heading">Try it now</h2>
<span class="hint">Nothing to install, in this browser tab.</span>
</div>
<div class="doors">
<a class="door" href="https://gallery.omnipython.org/">
<span class="door-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="3.5" width="17" height="17" rx="4.5"/><path d="M4.5 16.5c3-4.5 5.5-4.5 7.5-1.5 2-2.5 4.5-2.5 7.5.5"/><circle cx="15.2" cy="8.8" r="1.9" fill="var(--accent, currentColor)" stroke="none"/></svg></span>
<span class="door-body">
<span class="door-title">Watch it run</span>
<span class="door-text">Apps written with OmniPython running in your tab, MicroPython compiled to WebAssembly, with the code that draws them.</span>
<span class="door-where">gallery.omnipython.org</span>
</span>
<span class="door-action">Open the gallery <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="door" href="https://workbench.pydevices.com/">
<span class="door-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="4" width="19" height="16" rx="4.5"/><path d="M9.8 9.5L7.3 12l2.5 2.5M14.2 9.5l2.5 2.5-2.5 2.5" stroke="var(--accent, currentColor)"/></svg></span>
<span class="door-body">
<span class="door-title">Write your own in PyDevices Workbench</span>
<span class="door-text">An editor and a simulated board in your browser: write a program, run it on the simulator, then send it to a real board.</span>
<span class="door-where">On workbench.pydevices.com</span>
</span>
<span class="door-action">Open Workbench <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
</div>
</section>
<!-- PYDEVICES-PORTAL-TRY: END -->
<main class="cards wrap">
<!-- PYDEVICES-PORTAL-GRIDS: START -->
<div class="section-head">
<h2>The libraries, and where to read about them</h2>
<span class="hint">The docs and the package library first, then what your program imports, most used first.</span>
</div>
<div class="grid">
<a class="card card-tier-1" href="https://docs.omnipython.org/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 6.5C10 5 7 4.5 3.5 5v13c3.5-.5 6.5 0 8.5 1.5 2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5z"/><path d="M12 6.5v13"/></svg></span>
<span class="tag tag-tier-1">Docs</span>
</div>
<h3>docs.omnipython.org</h3>
<p>Install OmniPython on a board, a desktop or in the browser, then the guides and the reference for each library.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-1" href="https://lib.omnipython.org/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l8 4.5v9L12 21l-8-4.5v-9z"/><path d="M4 7.5l8 4.5 8-4.5M12 12v9"/></svg></span>
<span class="tag tag-tier-1">Packages</span>
</div>
<h3>lib.omnipython.org</h3>
<p>The package library: every OmniPython package and board driver, installed on a MicroPython board with mip or omip.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-1" href="/omnipython/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="19" height="13" rx="4"/><path d="M12 16.5v3.5M8 20.5h8"/><circle cx="12" cy="10" r="2.8"/><circle cx="12.6" cy="9.6" r="1.1" fill="var(--accent, currentColor)" stroke="none"/></svg></span>
<span class="tag tag-tier-1">Core</span>
</div>
<h3>omnipython</h3>
<p>The board contract: a small board_config per board, and display, touch, audio and event code that runs the same on all three Pythons.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-2" href="/pygraphics/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 3c-4.5 5-4.5 13 0 18M12 3c4.5 5 4.5 13 0 18"/><path d="M3.2 12q8.8 2.4 17.6 0" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-2">Graphics</span>
</div>
<h3>pygraphics</h3>
<p>2D drawing, text and bitmaps: native C where it is built in, pure Python everywhere else.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-3" href="/omnipython-lvgl/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="3.5" width="7" height="7" rx="2.5"/><rect x="13.5" y="13.5" width="7" height="7" rx="2.5"/><rect x="3.5" y="13.5" width="7" height="7" rx="2.5"/><rect x="13.5" y="3.5" width="7" height="7" rx="2.5" fill="var(--accent, currentColor)" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-3">LVGL</span>
</div>
<h3>omnipython-lvgl</h3>
<p>LVGL 9 for Python: a program imports lvgl the same way on MicroPython, CircuitPython and a desktop.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-1" href="/audiodsp/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 10.5v3M8 7.5v9M16 7.5v9M20 10.5v3"/><path d="M12 4v16" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-1">Audio</span>
</div>
<h3>audiodsp</h3>
<p>CircuitPython's audio system (audiocore, synthio, audiomixer, effects) on MicroPython and CPython as well.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-1" href="/audioinstruments/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="3.5"/><path d="M9 12.5V19M15 12.5V19"/><path d="M9 5.5v6M15 5.5v6" stroke="var(--accent, currentColor)" stroke-width="3"/></svg></span>
<span class="tag tag-tier-1">Instruments</span>
</div>
<h3>audioinstruments</h3>
<p>Playable synthesizers, organs, electric pianos and drum machines, in pure Python on audiodsp.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-1" href="/audioeffects/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 4v7.5M5 16.5V20M12 4v1.5M12 10.5V20M19 4v6.5M19 15.5V20"/><g stroke="var(--accent, currentColor)"><circle cx="5" cy="14" r="2.5"/><circle cx="12" cy="8" r="2.5"/><circle cx="19" cy="13" r="2.5"/></g></svg></span>
<span class="tag tag-tier-1">Effects</span>
</div>
<h3>audioeffects</h3>
<p>Studio and guitar-pedal effects: compressors, EQs, reverbs, delays, drive and amps, in pure Python on audiodsp.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-2" href="/palettes/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2.5c-5.3 0-9.5 4.2-9.5 9.5s4.2 9.5 9.5 9.5c1.1 0 2-.9 2-2 0-.6-.3-1-.3-1.6 0-.9.8-1.6 1.7-1.6H17c2.5 0 4.5-2 4.5-4.6 0-5-4.2-9.2-9.5-9.2z"/><circle cx="8" cy="8" r="1.4" fill="var(--accent, currentColor)" stroke="none"/><circle cx="13.5" cy="6.5" r="1.4" fill="var(--accent, currentColor)" stroke="none"/><circle cx="17.3" cy="10.3" r="1.4" fill="var(--accent, currentColor)" stroke="none"/><circle cx="6.5" cy="12.8" r="1.4" fill="var(--accent, currentColor)" stroke="none"/></svg></span>
<span class="tag tag-tier-2">Colour</span>
</div>
<h3>palettes</h3>
<p>Colour wheels, colour cubes, Material Design swatches and RGB565 conversion.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-2" href="https://github.com/PyDevices/omnipython/tree/main/packages/iconkit">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="7" cy="7" r="3.3"/><rect x="13.7" y="3.7" width="6.6" height="6.6" rx="2.2"/><path d="M7 14.2l3.3 5.6H3.7z"/><path d="M17 13.6v6.8M13.6 17h6.8" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-2">Icons</span>
</div>
<h3>iconkit</h3>
<p>Material Design icons kept in flash, drawn in LVGL or pygraphics.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-5" href="/omnipython-builds/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6.5" y="6.5" width="11" height="11" rx="3"/><path d="M9.8 3v3.5M14.2 3v3.5M9.8 17.5V21M14.2 17.5V21M3 9.8h3.5M3 14.2h3.5M17.5 9.8H21M17.5 14.2H21"/><circle cx="12" cy="12" r="1.7" fill="var(--accent, currentColor)" stroke="none"/></svg></span>
<span class="tag tag-tier-5">Firmware</span>
</div>
<h3>omnipython-builds</h3>
<p>Builds MicroPython and CircuitPython firmware with OmniPython inside, the desktop interpreters and the WebAssembly runtime.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-4" href="/pyscript-template/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="19" height="14" rx="4"/><path d="M8 21h8M12 17.5V21M7.5 8.5h6"/><path d="M7.5 12.5h3.5" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-4">Web app</span>
</div>
<h3>pyscript-template</h3>
<p>A starting point for an OmniPython web app that works offline, published on GitHub Pages.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-4" href="/android-template/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6.5" y="2.5" width="11" height="19" rx="3.5"/><path d="M10.8 18.3h2.4"/><path d="M10.7 8.3v4.4l3.4-2.2z" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-4">Android app</span>
</div>
<h3>android-template</h3>
<p>Package an OmniPython app as an Android APK.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
<a class="card card-tier-2" href="/pdwidgets/">
<div class="card-top">
<span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="3.5" width="17" height="17" rx="4.5"/><path d="M3.5 9.5h17M9.5 9.5v11"/><path d="M7 6.5h3.5" stroke="var(--accent, currentColor)"/></svg></span>
<span class="tag tag-tier-2">Demonstration</span>
</div>
<h3>pdwidgets</h3>
<p>A widget toolkit in pure Python, showing that the core can carry a UI framework. For an interface you ship, use LVGL.</p>
<span class="go">Open <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></span>
</a>
</div>
<!-- PYDEVICES-PORTAL-GRIDS: END -->
<!-- Hand-authored drawing: outside any generator marker pair on purpose,
so `generate_sites.py` (which only ever rewrites between START/END)
never clobbers it. Plain HTML on the site's own tokens, so a palette
or theme change reaches it with no script. -->
<style>
.arch{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}
.arch .stack{display:flex;flex-direction:column}
.arch .row{border:1px solid var(--border);background:var(--bg-soft);border-radius:12px;padding:12px 16px}
.arch .row.program{border-style:dashed;text-align:center}
.arch .row.omni{border:2px solid var(--accent);background:var(--panel)}
.arch .row h3{margin:0 0 8px 0;font-size:15px;font-weight:600;color:var(--accent);letter-spacing:.2px}
.arch .row.py h3,.arch .row.host h3{color:var(--ink-soft)}
.arch .sub{color:var(--muted);font-size:13px;margin-left:8px;font-weight:400}
.arch .groups{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.arch .group{background:var(--bg-soft);border:1px solid var(--border);border-radius:9px;padding:9px 10px}
.arch .group h4{margin:0 0 6px 0;font-size:12.5px;font-weight:600;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.4px}
.arch .chips{display:flex;flex-wrap:wrap;gap:5px}
.arch .chip{font-size:12.5px;padding:3px 8px;border:1px solid var(--border);border-radius:6px;background:var(--panel);white-space:nowrap}
.arch .arrow{text-align:center;color:var(--muted);font-size:20px;line-height:22px;margin:2px 0}
.arch .cells{display:grid;gap:10px}.arch .cells.three{grid-template-columns:repeat(3,1fr)}.arch .cells.four{grid-template-columns:repeat(4,1fr)}
.arch .cell{border:1px solid var(--border);border-radius:9px;padding:9px 10px;background:var(--panel);text-align:center}
.arch .cell b{display:block;font-weight:600;font-size:14px}.arch .cell span{color:var(--ink-soft);font-size:12px}
@media (max-width: 900px){.arch{grid-template-columns:1fr}.arch .groups{grid-template-columns:1fr 1fr}.arch .cells.four{grid-template-columns:1fr 1fr}}
@media (max-width: 560px){.arch .groups,.arch .cells.three,.arch .cells.four{grid-template-columns:1fr}}
</style>
<section class="wrap" style="margin: 60px auto 20px auto; max-width: 1200px; padding: 0 20px;">
<div class="section-head" style="text-align: center; margin-bottom: 30px;">
<h2>Architecture & Layers</h2>
<span class="hint">How a program reaches the hardware: the OmniPython libraries it imports, the Python it runs on, and the host underneath.</span>
</div>
<div class="arch">
<div class="stack">
<div class="row program"><b>Your program</b> <span class="sub">one codebase, unchanged on every Python below</span></div>
<div class="arrow">↓</div>
<div class="row omni"><h3>OmniPython <span class="sub">the same libraries and modules on every Python</span></h3>
<div class="groups">
<div class="group"><h4>The board contract</h4><div class="chips"><span class="chip">board_config</span><span class="chip">board_peripherals</span><span class="chip">displaydev</span><span class="chip">audiodev</span><span class="chip">appdev</span><span class="chip">multimer</span><span class="chip">events</span><span class="chip">keys</span></div></div>
<div class="group"><h4>Apps and UI</h4><div class="chips"><span class="chip">appkit</span><span class="chip">pdwidgets</span><span class="chip">pygraphics</span><span class="chip">palettes</span><span class="chip">lvgl</span></div></div>
<div class="group"><h4>Audio</h4><div class="chips"><span class="chip">audiodsp</span><span class="chip">audioinstruments</span><span class="chip">audioeffects</span></div></div>
<div class="group"><h4>Connections</h4><div class="chips"><span class="chip">midiports</span><span class="chip">usb packages</span><span class="chip">bledev</span><span class="chip">wifi</span><span class="chip">mdns</span><span class="chip">hmilink</span></div></div>
<div class="group"><h4>Silicon modules (C)</h4><div class="chips"><span class="chip c">displayif</span><span class="chip c">audioif</span><span class="chip c">cameraif</span><span class="chip c">usbhost</span><span class="chip c">castif</span><span class="chip c">jpegio</span><span class="chip c">pngio</span><span class="chip c">h264enc</span><span class="chip c">tsmux</span><span class="chip c">ppa</span><span class="chip c">tflite</span><span class="chip c">vision</span></div></div>
</div>
</div>
<div class="arrow">↓</div>
<div class="row py"><h3>Any Python</h3><div class="cells three">
<div class="cell"><b>MicroPython</b><span>boards, desktop, browser</span></div>
<div class="cell"><b>CircuitPython</b><span>boards, desktop</span></div>
<div class="cell"><b>CPython</b><span>desktop, Android, browser</span></div></div></div>
<div class="arrow">↓</div>
<div class="row host"><h3>Any host</h3><div class="cells four">
<div class="cell"><b>Boards</b><span>ESP32-S3, ESP32-P4, RP2350, ...</span></div>
<div class="cell"><b>Desktop</b><span>Windows, Linux</span></div>
<div class="cell"><b>Browser</b><span>WebAssembly, Pyodide</span></div>
<div class="cell"><b>Android</b><span>phones and tablets</span></div></div></div>
</div>
</div>
</section>
</main>
<!-- PYDEVICES-PORTAL-TOOLS: START -->
<p class="portal-tools wrap">Looking for the board tool or the audio plug-in? MCU Control and mpvst are made by PyDevices, like Workbench, at <a href="https://pydevices.com/">pydevices.com</a>.</p>
<!-- PYDEVICES-PORTAL-TOOLS: END -->
<div id="pydevices-site-footer"></div>
<script src="/assets/chrome/site-chrome.js"></script>
</body>
</html>