File tree 4 files changed +4
-10
lines changed
4 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 21
21
elif "Circuit Playground Bluefruit" in os .uname ().machine :
22
22
from .cpb_gizmo import cpb_gizmo as pybadger
23
23
elif "MagTag with ESP32S2" in os .uname ().machine :
24
- from .mag_tag import mag_tag as pybadger
24
+ from .magtag import magtag as pybadger
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: MIT
4
4
5
5
"""
6
- `adafruit_pybadger.mag_tag `
6
+ `adafruit_pybadger.magtag `
7
7
================================================================================
8
8
9
9
Badge-focused CircuitPython helper library for Mag Tag.
@@ -80,5 +80,5 @@ def _unsupported(self):
80
80
button = _unsupported
81
81
82
82
83
- mag_tag = MagTag () # pylint: disable=invalid-name
83
+ magtag = MagTag () # pylint: disable=invalid-name
84
84
"""Object that is automatically created on import."""
Original file line number Diff line number Diff line change 10
10
.. automodule :: adafruit_pybadger.clue
11
11
:members:
12
12
13
- .. automodule :: adafruit_pybadger.mag_tag
13
+ .. automodule :: adafruit_pybadger.magtag
14
14
:members:
15
15
16
16
.. automodule :: adafruit_pybadger.pewpewm4
Original file line number Diff line number Diff line change @@ -52,9 +52,6 @@ def try_refresh():
52
52
53
53
print ("after show, going to loop" )
54
54
55
- neopixel_pwr = digitalio .DigitalInOut (board .NEOPIXEL_POWER )
56
- neopixel_pwr .direction = digitalio .Direction .OUTPUT
57
- neopixel_pwr .value = False
58
55
pybadger .pixels .fill (0x000022 )
59
56
60
57
while True :
@@ -65,7 +62,6 @@ def try_refresh():
65
62
66
63
if prev_a and not cur_a :
67
64
pybadger .pixels .fill (0x000000 )
68
- neopixel_pwr .value = True
69
65
if SHOWING != "badge" :
70
66
print ("changing to badge" )
71
67
SHOWING = "badge"
@@ -76,7 +72,6 @@ def try_refresh():
76
72
77
73
if prev_b and not cur_b :
78
74
pybadger .pixels .fill (0x000000 )
79
- neopixel_pwr .value = True
80
75
if SHOWING != "qr" :
81
76
print ("changing to qr" )
82
77
SHOWING = "qr"
@@ -85,7 +80,6 @@ def try_refresh():
85
80
86
81
if prev_c and not cur_c :
87
82
pybadger .pixels .fill (0x000000 )
88
- neopixel_pwr .value = True
89
83
if SHOWING != "card" :
90
84
print ("changing to card" )
91
85
SHOWING = "card"
You can’t perform that action at this time.
0 commit comments