Skip to content

Commit 089e971

Browse files
committed
Merge branch 'supporting_pyportal' into adding_pewpewm4_support
2 parents 2589e54 + dbaba83 commit 089e971

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

adafruit_pybadger/pyportal.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(self):
6363
self._neopixels = neopixel.NeoPixel(
6464
board.NEOPIXEL, self._neopixel_count, brightness=1, pixel_order=neopixel.GRB
6565
)
66+
self._light_sensor = analogio.AnalogIn(board.LIGHT)
6667

6768
@property
6869
def _unsupported(self):
@@ -72,9 +73,9 @@ def _unsupported(self):
7273
# The following is a list of the features available in other PyBadger modules but
7374
# not available for PyPortal. If called while using a PyPortal, they will result in the
7475
# NotImplementedError raised in the property above.
75-
play_file = _unsupported
76-
light = _unsupported
7776
button = _unsupported
77+
acceleration = _unsupported
78+
auto_dim_display = _unsupported
7879

7980

8081
pyportal = PyPortal() # pylint: disable=invalid-name

examples/Blinka_PyPortal.bmp

41.1 KB
Binary file not shown.

examples/pybadger_pyportal_touchscreen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Simpletest examaple using Adafruit PyPortal. Uses the touchscreen to advance between examples."""
1+
"""Simpletest example using Adafruit PyPortal. Uses the touchscreen to advance between examples."""
22
import board
33
from adafruit_pybadger import pybadger
44
import adafruit_touchscreen
@@ -33,7 +33,7 @@
3333

3434
if cur_example == 0:
3535
pybadger.show_business_card(
36-
image_name="Blinka.bmp",
36+
image_name="Blinka_PyPortal.bmp",
3737
name_string="Blinka",
3838
name_scale=2,
3939
email_string_one="blinka@",

0 commit comments

Comments
 (0)