From 6a26aa9802cb457a38cdd950ac48ea8955788396 Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Mon, 28 Feb 2022 16:16:44 +0000 Subject: [PATCH 1/6] Create led.py --- micropython/examples/badger2040/led.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 micropython/examples/badger2040/led.py diff --git a/micropython/examples/badger2040/led.py b/micropython/examples/badger2040/led.py new file mode 100644 index 00000000..7976a640 --- /dev/null +++ b/micropython/examples/badger2040/led.py @@ -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) \ No newline at end of file From d9465aadb8e971c31b9f4ac594f2cd4c656ff959 Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Mon, 28 Feb 2022 16:19:48 +0000 Subject: [PATCH 2/6] Update README.md --- micropython/examples/badger2040/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/micropython/examples/badger2040/README.md b/micropython/examples/badger2040/README.md index 91998158..d6fff622 100644 --- a/micropython/examples/badger2040/README.md +++ b/micropython/examples/badger2040/README.md @@ -25,6 +25,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. A lot. + ## Application Examples @@ -45,7 +50,7 @@ A checklist application, letting you navigate through items and tick each of the ### Clock [clock.py](clock.py) -A simple clock showing the time and date, that uses the EInk's fast speed to update every second +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](e-reader.py) From 7a0fab7e29f4869c7a95bd673a0b4b5c1874f4ba Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Mon, 28 Feb 2022 16:41:45 +0000 Subject: [PATCH 3/6] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9657ca13..c04ab5c2 100644 --- a/README.md +++ b/README.md @@ -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 From fbb803e9a68f9bc0861b70ab268bacf655b42522 Mon Sep 17 00:00:00 2001 From: Hel Gibbons <50950368+helgibbons@users.noreply.github.com> Date: Tue, 1 Mar 2022 13:13:00 +0000 Subject: [PATCH 4/6] Update README.md --- micropython/examples/badger2040/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/micropython/examples/badger2040/README.md b/micropython/examples/badger2040/README.md index d6fff622..3047636c 100644 --- a/micropython/examples/badger2040/README.md +++ b/micropython/examples/badger2040/README.md @@ -3,6 +3,7 @@ - [Function Examples](#function-examples) - [Battery](#battery) - [Button Test](#button-test) + - [LED](#LED) - [Application Examples](#application-examples) - [Badge](#badge) - [Checklist](#checklist) @@ -72,4 +73,4 @@ python3 convert.py --binary --resize image_file_1.png image_file_2.png image_fil ### Launcher [Launcher.py](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. \ No newline at end of file +A launcher style application, that gives a menu of other applications that can be loaded, as well as information such as battery level. From 1975b47e3378255a5edcd6fa6c54e83d1f015b9f Mon Sep 17 00:00:00 2001 From: helgibbons <50950368+helgibbons@users.noreply.github.com> Date: Fri, 4 Mar 2022 09:00:04 +0000 Subject: [PATCH 5/6] Tweak examples readme --- micropython/examples/badger2040/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/examples/badger2040/README.md b/micropython/examples/badger2040/README.md index 3047636c..8be08a48 100644 --- a/micropython/examples/badger2040/README.md +++ b/micropython/examples/badger2040/README.md @@ -29,7 +29,7 @@ An example of how to read Badger2040's buttons and display a unique message for ### LED [led.py](led.py) -Blinks Badger's LED on and off. A lot. +Blinks Badger's LED on and off. ## Application Examples From 7d7c4952fc79bb263db0044780dd5c79021be720 Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Fri, 4 Mar 2022 12:34:44 +0000 Subject: [PATCH 6/6] Lint LED example --- micropython/examples/badger2040/led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/examples/badger2040/led.py b/micropython/examples/badger2040/led.py index 7976a640..811d294e 100644 --- a/micropython/examples/badger2040/led.py +++ b/micropython/examples/badger2040/led.py @@ -9,4 +9,4 @@ while True: badger.led(255) time.sleep(1) badger.led(0) - time.sleep(1) \ No newline at end of file + time.sleep(1)