|
15 | 15 | NEOPIXEL_PIN = board.D13 # change to reflect your wiring |
16 | 16 |
|
17 | 17 | # Palettes can have any number of elements in various formats |
18 | | -# check https://learn.adafruit.com/fancyled-library-for-circuitpython/colors |
| 18 | +# check https://learn.adafruit.com/fancyled-library-for-circuitpython/colors |
19 | 19 | # for more info |
20 | 20 |
|
21 | 21 | # Declare a 6-element RGB rainbow palette |
22 | 22 | PALETTE_RAINBOW = [fancy.CRGB(1.0, 0.0, 0.0), # Red |
23 | 23 | fancy.CRGB(0.5, 0.5, 0.0), # Yellow |
24 | | - fancy.CRGB(0.0, 1.0, 0.0), # Green |
| 24 | + fancy.CRGB(0.0, 1.0, 0.0), # Green |
25 | 25 | fancy.CRGB(0.0, 0.5, 0.5), # Cyan |
26 | 26 | fancy.CRGB(0.0, 0.0, 1.0), # Blue |
27 | 27 | fancy.CRGB(0.5, 0.0, 0.5)] # Magenta |
|
44 | 44 | fancy.CRGB(0, 123, 255), |
45 | 45 | fancy.CRGB(0, 68, 214)] |
46 | 46 |
|
47 | | -# Declare a NeoPixel object on NEOPIXEL_PIN with NUM_LEDS pixels, |
| 47 | +# Declare a NeoPixel object on NEOPIXEL_PIN with NUM_LEDS pixels, |
48 | 48 | # no auto-write. |
49 | 49 | # Set brightness to max because we'll be using FancyLED's brightness control. |
50 | 50 | pixels = neopixel.NeoPixel(NEOPIXEL_PIN, NUM_LEDS, brightness=1.0, |
|
0 commit comments