Skip to content

Commit 63b8f58

Browse files
authored
Merge pull request #3 from adafruit/rainbowio
Updating examples to use rainbowio.
2 parents 03a35bb + 4997788 commit 63b8f58

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/neokey1x4_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22
# SPDX-License-Identifier: MIT
3-
3+
"""NeoKey simpletest."""
44
import board
55
from adafruit_neokey.neokey1x4 import NeoKey1x4
66

examples/neokey_1x4_multikey.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
# SPDX-License-Identifier: MIT
33
"""Example for connecting two NeoKey 1x4 breakouts. Requires bridging the A0 jumper on one board."""
44
import board
5+
from rainbowio import colorwheel
56
from adafruit_neokey.neokey1x4 import NeoKey1x4
67

7-
try:
8-
from _pixelbuf import colorwheel
9-
except ImportError:
10-
from adafruit_pypixelbuf import colorwheel
11-
128
# Create a NeoKey object
139
neokey1 = NeoKey1x4(board.I2C())
1410
neokey2 = NeoKey1x4(board.I2C(), addr=0x31)

0 commit comments

Comments
 (0)