This commit is contained in:
Lukian 2024-10-23 20:08:41 +02:00
parent 068d3a6f70
commit e92123ab22
9 changed files with 328 additions and 174 deletions

View file

@ -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