pimoroni-pico/micropython/examples/badger2040
Phil Howard d3ac1b63be qrcode: Rename & improve example 2022-03-11 12:52:29 +00:00
..
assets qrcode: Add example to badgerOS 2022-03-11 12:52:29 +00:00
README.md Tweak examples readme 2022-03-04 09:00:04 +00:00
badge.py fix custom badge file not loading correctly 2022-02-28 00:48:40 +00:00
battery.py Added no battery setting 2022-02-25 11:08:32 +00:00
button_test.py Badger2040: Refactor to fix MicroPython issues 2022-02-25 11:08:32 +00:00
clock.py Merge pull request #278 from lurch/patch-3 2022-03-09 14:17:29 +00:00
ebook.py Badger2040: Fix ebook.py missing lines for #280 2022-03-10 10:37:39 +00:00
fonts.py Made menu in font.py a bit bigger 2022-02-25 11:08:32 +00:00
help.py Badger2040: Finish Help & Info 2022-02-25 16:06:52 +00:00
image.py Badger2040: Image file overlay toggle 2022-03-04 14:58:52 +00:00
info.py Badger2040: Finish Help & Info 2022-02-25 16:06:52 +00:00
launcher.py qrcode: Rename & improve example 2022-03-11 12:52:29 +00:00
led.py Lint LED example 2022-03-04 12:34:44 +00:00
list.py Badger2040: List load/save 2022-03-04 14:40:09 +00:00
micropython-builtins.cmake qrcode: Rename & improve example 2022-03-11 12:52:29 +00:00
pin_interupt.py Badger2040: Fix typo, comment out explodey wfi 2022-02-25 11:08:32 +00:00
qrgen.py qrcode: Rename & improve example 2022-03-11 12:52:29 +00:00

README.md

Badger 2040 Examples

Function Examples

Battery

battery.py

An example of how to read the battery voltage and display a battery level indicator.

Button Test

button_test.py

An example of how to read Badger2040's buttons and display a unique message for each.

LED

led.py

Blinks Badger's LED on and off.

Application Examples

Badge

badge.py

Create your own name badge! This application looks for two files on your MicroPython drive:

  • "badge.txt" - A text file containing 6 lines, corresponding to the 6 different piece of text on the badge
  • "badge-image.bin" - A 108x128px 1bit colour depth image to display alongside the text. You can use examples/badger2040/image_converter/convert.py to convert them:

python3 convert.py --binary --resize image_file_1.png image_file_2.png image_file_3.png

Checklist

checklist.py

A checklist application, letting you navigate through items and tick each of them off.

Clock

clock.py

A simple clock showing the time and date, that uses the E Ink's fast speed to update every second

E-Reader

e-reader.py

A mini text file e-reader. Comes pre-loaded with an excerpt of The Wind In the Willows.

Fonts

Fonts.py

A demonstration of the various fonts that can be used in your programs.

Image

image.py

An image gallery. Displays and lets you cycle through any images stored within the MicroPython device's /images directory. Images must be 296x128 pixels with 1bit colour depth. You can use examples/badger2040/image_converter/convert.py to convert them:

python3 convert.py --binary --resize image_file_1.png image_file_2.png image_file_3.png

Launcher

Launcher.py

A launcher style application, that gives a menu of other applications that can be loaded, as well as information such as battery level.