Skip to content

Commit

Permalink
feat: white light
Browse files Browse the repository at this point in the history
  • Loading branch information
sasilva1998 committed May 21, 2021
1 parent 4662d20 commit 7a37926
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@

import machine, neopixel

np = neopixel.NeoPixel(machine.Pin(26), 29)
leds_number = 30
pin_led = 26

for i in range(0, 29):
np[i] = (255, 255, 0)
np = neopixel.NeoPixel(machine.Pin(pin_led), leds_number)

for i in range(
leds_number,
):
np[i] = (255, 255, 255)
np.write()

0 comments on commit 7a37926

Please sign in to comment.