Skip to content

Commit 5dd187a

Browse files
committed
rename mag_tag to magtag. Remove neopixel power pin handling from magtag example
1 parent dad4acf commit 5dd187a

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

adafruit_pybadger/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
elif "Circuit Playground Bluefruit" in os.uname().machine:
2222
from .cpb_gizmo import cpb_gizmo as pybadger
2323
elif "MagTag with ESP32S2" in os.uname().machine:
24-
from .mag_tag import mag_tag as pybadger
24+
from .magtag import mag_tag as pybadger
File renamed without changes.

examples/pybadger_magtag_simpletest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ def try_refresh():
5252

5353
print("after show, going to loop")
5454

55-
neopixel_pwr = digitalio.DigitalInOut(board.NEOPIXEL_POWER)
56-
neopixel_pwr.direction = digitalio.Direction.OUTPUT
57-
neopixel_pwr.value = False
5855
pybadger.pixels.fill(0x000022)
5956

6057
while True:
@@ -65,7 +62,6 @@ def try_refresh():
6562

6663
if prev_a and not cur_a:
6764
pybadger.pixels.fill(0x000000)
68-
neopixel_pwr.value = True
6965
if SHOWING != "badge":
7066
print("changing to badge")
7167
SHOWING = "badge"
@@ -76,7 +72,6 @@ def try_refresh():
7672

7773
if prev_b and not cur_b:
7874
pybadger.pixels.fill(0x000000)
79-
neopixel_pwr.value = True
8075
if SHOWING != "qr":
8176
print("changing to qr")
8277
SHOWING = "qr"
@@ -85,7 +80,6 @@ def try_refresh():
8580

8681
if prev_c and not cur_c:
8782
pybadger.pixels.fill(0x000000)
88-
neopixel_pwr.value = True
8983
if SHOWING != "card":
9084
print("changing to card")
9185
SHOWING = "card"

0 commit comments

Comments
 (0)