pimoroni-pico/micropython/examples/badger2040w/readme.md

3.4 KiB

Badger 2040 W MicroPython Examples

⚠️ This code has been deprecated in favour of a dedicated Badger 2040 project: https://github.com/pimoroni/badger2040

About Badger 2040 W

Badger 2040 W is a programmable E Paper/eInk/EPD badge with 2.4GHz wireless connectivity, powered by Raspberry Pi Pico W. It can go into a deep sleep mode between updates to preserve battery.

Badger 2040 W ships with MicroPython firmware pre-loaded, but you can download the most recent version at the link below (you'll want the pimoroni-badger2040w .uf2). If you download the -with-examples file, it will come with examples built in.

Badger 2040 W and PicoGraphics

The easiest way to start displaying cool stuff on Badger is by using our badger2040w module (which contains helpful functions for interacting with the board hardware) and our PicoGraphics library (which contains a bunch of functions for drawing on the E Ink display).

Examples

Find out more about how to use these examples in our Learn guide:

Badge

badge.py

Customisable name badge example.

Clock

clock.py

Clock example with (optional) NTP synchronization and partial screen updates.

Ebook

ebook.py

View text files on Badger.

Fonts

fonts.py

View all the built in fonts.

Help

help.py

How to navigate the launcher.

Image

image.py

Display .jpegs on Badger.

Info

info.py

Info about Badger 2040 W.

List

list.py

A checklist to keep track of to-dos or shopping.

Net Info

net_info.py

Show IP address and other wireless connection details.

News

news.py

View BBC news headlines.

Qrgen

qrgen.py

Display QR codes and associated text.

Weather

weather.py

Display current weather data from the Open-Meteo weather API

Other Resources

Here are some cool Badger 2040 W community projects and resources that you might find useful / inspirational! Note that code at the links below has not been tested by us and we're not able to offer support with it.