Skip to content

Commit ca984b7

Browse files
authored
Add NeoPixel control code for Crickit
Initial commit of code to control Crickit's onboard NeoPixel.
1 parent d23d362 commit ca984b7

File tree

1 file changed

+16
-0
lines changed
  • Crickits/Make_It_Glow_With_Crickit/Crickit-Onboard-NeoPixel

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SPDX-FileCopyrightText: 2018 Anne Barela for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
# Using Crickit's onboard NeoPixel
6+
# See http://www.color-hex.com/ for more colors and find your fav!
7+
from adafruit_crickit import crickit
8+
from adafruit_seesaw.neopixel import NeoPixel
9+
10+
crickit_status_pixel = NeoPixel(crickit.seesaw, 27, 1) # one NeoPixel pin 27
11+
12+
# Fill them with our favorite color "#0099FF light blue" -> 0x0099FF
13+
crickit_status_pixel.fill(0x0099FF)
14+
15+
while True:
16+
pass

0 commit comments

Comments
 (0)