Merge pull request #263 from pimoroni/moar-badger-examples
Add simple LED example and readme tweaks
This commit is contained in:
commit
60a9e93251
|
@ -75,8 +75,9 @@ We also maintain a C++/CMake boilerplate with GitHub workflows configured for te
|
|||
|
||||
## RP2040 Boards
|
||||
|
||||
* Plasma 2040 - https://shop.pimoroni.com/products/plasma-2040
|
||||
* Interstate 75 - HUB75 driver https://shop.pimoroni.com/products/interstate-75
|
||||
* Plasma 2040 (LED strip driver) - https://shop.pimoroni.com/products/plasma-2040
|
||||
* Interstate 75 (HUB75 driver) - https://shop.pimoroni.com/products/interstate-75
|
||||
* Badger 2040 (E Ink badge) - https://shop.pimoroni.com/products/badger-2040
|
||||
|
||||
## Breakouts
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
- [Function Examples](#function-examples)
|
||||
- [Battery](#battery)
|
||||
- [Button Test](#button-test)
|
||||
- [LED](#LED)
|
||||
- [Application Examples](#application-examples)
|
||||
- [Badge](#badge)
|
||||
- [Checklist](#checklist)
|
||||
|
@ -25,6 +26,11 @@ An example of how to read the battery voltage and display a battery level indica
|
|||
|
||||
An example of how to read Badger2040's buttons and display a unique message for each.
|
||||
|
||||
### LED
|
||||
[led.py](led.py)
|
||||
|
||||
Blinks Badger's LED on and off.
|
||||
|
||||
|
||||
## Application Examples
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
# Blinky badger fun!
|
||||
|
||||
import badger2040
|
||||
import time
|
||||
|
||||
badger = badger2040.Badger2040()
|
||||
|
||||
while True:
|
||||
badger.led(255)
|
||||
time.sleep(1)
|
||||
badger.led(0)
|
||||
time.sleep(1)
|
Loading…
Reference in New Issue