PyScript · MicroPython in the browser

pydisplay demos

Cross-platform display and event drivers for MicroPython, CircuitPython and CPython — running right here in your browser with PyScript.

PyScript runs everything on asyncio. The async demos run an event loop and stay responsive; the all-mode examples each load behind a Run button because some run a blocking loop. First load may take a few seconds while the runtime downloads.

Async demos

examples marked multimer types: async

All-mode examples

marked multimer types: all — open one and click Run
all

Alien

Bounce a bitmap of an alien around the display.

Open demo
all

Boxlines

Test for lines and rectangles.

Open demo
all

Chango

Test for TrueType write_font_converter.

Open demo
all

Color Test

Test color with gradients.

Open demo
all

Console Simpletest

Call `console.hide()` to use the display for something else.

Open demo
all

Displaybuf Blit

The displaybuf_blit demo running in the browser via PyScript.

Open demo
all

Displaybuf Simpletest

displaybuf_simpletest.py - Simple test program for displaybuf.py

Open demo
all

Displaysys Block Test

The displaysys_block_test demo running in the browser via PyScript.

Open demo
all

Displaysys Fill Rect Test

The displaysys_fill_rect_test demo running in the browser via PyScript.

Open demo
all

Displaysys Simpletest

The displaysys_simpletest demo running in the browser via PyScript.

Open demo
all

Eventsys Encoder Test

A simple test of an encoder in eventsys.

Open demo
all

Eventsys Touch Test

eventsys_touch_test.py - Touch rotation test.

Open demo
all

Feathers

Modified by Brad Barnett from Russ Hughes's original to scroll vertically instead of horizontally

Open demo
all

Fonts

Test text_font_converter.py

Open demo
all

Framebuf Simpletest

Simple test example to demonstrate the use of framebuf.FrameBuffer.

Open demo
all

Graphics Area Test

Test the Area return type of the shapes functions.

Open demo
all

Graphics Simpletest

Simple test example to demonstrate the use of graphics.

Open demo
all

Hello

Test for text_font_converter.

Open demo
all

Joystick List Select

The joystick_list_select demo running in the browser via PyScript.

Open demo
all

Keypins Simpletest

The keypins_simpletest demo running in the browser via PyScript.

Open demo
all

Logo

The logo demo running in the browser via PyScript.

Open demo
all

Noto Fonts

Test for TrueType write_font_converter.

Open demo
all

Palettes Cube

The palettes_cube demo running in the browser via PyScript.

Open demo
all

Palettes Material

The palettes_material demo running in the browser via PyScript.

Open demo
all

Palettes Wheel

The palettes_wheel demo running in the browser via PyScript.

Open demo
all

Pbm Create New

The pbm_create_new demo running in the browser via PyScript.

Open demo
all

Proverbs

Test for TrueType write_font_converter.

Open demo
all

Rotations

Test for rotations and colors.

Open demo
all

Scroll

Test for hardware scrolling.

Open demo
all

Scroll Touch Test

The scroll_touch_test demo running in the browser via PyScript.

Open demo
all

Scroll Touch Test Displaybuf

The scroll_touch_test_displaybuf demo running in the browser via PyScript.

Open demo
all

Tiny Hello

Test text_font_converter on small displays.

Open demo
all

Tiny Toasters

Test sprites_converter.

Open demo
all

Widgets Calc

The widgets_calc demo running in the browser via PyScript.

Open demo
all

Widgets Console

The widgets_console demo running in the browser via PyScript.

Open demo
all

Widgets Demo

The widgets_demo demo running in the browser via PyScript.

Open demo
all

Widgets List

Test ListView widget

Open demo
all

Widgets Percent

The widgets_percent demo running in the browser via PyScript.

Open demo
all

Widgets Scrollbar

The widgets_scrollbar demo running in the browser via PyScript.

Open demo
all

Widgets Stub

The widgets_stub demo running in the browser via PyScript.

Open demo
all

Widgets Test

The widgets_test demo running in the browser via PyScript.

Open demo
experimental

Nano Gui Simpletest

nano_gui_simpletest.py - Copied from:

Open demo

Interactive tools

live coding and exploration

Elsewhere