Skip to content

Commit

Permalink
Update code.py
Browse files Browse the repository at this point in the history
  • Loading branch information
porplax authored Apr 9, 2024
1 parent 19b1aaa commit a9396c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/neobridge/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

SET_ALL = 0
SET_ONE = 1
SET_LIST = 2

PIXEL_PIN = board.GP15
NUMBER_OF_PIXELS = 30
Expand Down Expand Up @@ -51,6 +52,10 @@
elif command == RESET:
print('\r\n')
supervisor.reload()
elif command == SET_LIST:
_list = data['rgb_list']
for i in _list:
neo[i] = _list[i]
except:
pass

Expand Down

0 comments on commit a9396c6

Please sign in to comment.