commit
This commit is contained in:
parent
068d3a6f70
commit
e92123ab22
9 changed files with 328 additions and 174 deletions
13
neopixel.lua
13
neopixel.lua
|
@ -25,19 +25,6 @@ function feux()
|
|||
end
|
||||
end
|
||||
|
||||
function wheelRGB(pos)
|
||||
pos = 255 - pos
|
||||
if (pos < 85) then
|
||||
return 255 - pos * 3, 0, pos * 3
|
||||
elseif (pos < 170) then
|
||||
pos = pos - 85
|
||||
return 0, pos * 3, 255 - pos * 3
|
||||
else
|
||||
pos = pos - 170
|
||||
return pos * 3, 255 - pos * 3, 0
|
||||
end
|
||||
end
|
||||
|
||||
function arc()
|
||||
neo = neopixel.attach(neopixel.WS2812B, pio.GPIO18, 8)
|
||||
for i=0,7 do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue