- testé le mode deep sleep avec dsleep.lua
- fait un petit ping avec ping.lua pour tester si une machine est présente
This commit is contained in:
@@ -2,16 +2,22 @@
|
||||
-- tout sur la couleur: https://www.w3schools.com/colors/default.asp
|
||||
-- roue des couleurs: https://iro.js.org/?ref=oldsite
|
||||
|
||||
print("\n just_test_3x.lua zf181105.1428 \n")
|
||||
print("\n just_test_3x.lua zf181106.0940 \n")
|
||||
|
||||
|
||||
print("Initializing LED strip...")
|
||||
ws2812.init()
|
||||
ws2812_effects.stop()
|
||||
strip_buffer = ws2812.newBuffer(3, 3)
|
||||
ws2812.write(string.char(0, 255, 0, 255, 0, 0, 0, 0, 255))
|
||||
ws2812.write(string.char(255, 0, 255, 0, 255, 255, 255, 255, 0))
|
||||
ws2812.write(string.char(128, 255, 64, 255, 200, 200, 200, 200, 255))
|
||||
ws2812.write(string.char(255, 255, 255, 40, 40, 40, 5, 5, 5))
|
||||
ws2812.write(string.char(0, 0, 0, 0, 0, 0, 0, 0, 0))
|
||||
ws2812.write(string.char(255, 0, 0, 0, 255, 0, 0, 0, 255)) -- RGB natural
|
||||
|
||||
ws2812.write(string.char(0, 255, 0, 0, 0, 255, 255, 0, 0)) -- GBR WS2813
|
||||
ws2812.write(string.char(0, 255, 0, 255, 0, 0, 0, 0, 255)) -- GRB WS2812
|
||||
|
||||
ws2812.write(string.char(255, 0, 255, 255, 255, 0, 0, 255, 255)) -- CMY en GBR WS2813!
|
||||
ws2812.write(string.char(255, 0, 255, 0, 255, 255, 255, 255, 0)) -- CMY en GRB WS2812!
|
||||
|
||||
ws2812.write(string.char(128, 255, 64, 255, 200, 200, 200, 200, 255))
|
||||
ws2812.write(string.char(255, 255, 255, 40, 40, 40, 5, 5, 5))
|
||||
ws2812.write(string.char(0, 0, 0, 0, 0, 0, 0, 0, 0))
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
-- Scripts juste pour tester 6x LED RGB
|
||||
-- tout sur la couleur: https://www.w3schools.com/colors/default.asp
|
||||
-- roue des couleurs: https://iro.js.org/?ref=oldsite
|
||||
|
||||
print("\n just_test_3x.lua zf181106.1458 \n")
|
||||
|
||||
|
||||
print("Initializing LED strip...")
|
||||
ws2812.init()
|
||||
ws2812_effects.stop()
|
||||
strip_buffer = ws2812.newBuffer(6, 3)
|
||||
ws2812.write(string.char(255, 0, 0, 0, 255, 0, 0, 0, 255)) -- RGB positionnement naturel
|
||||
|
||||
ws2812.write(string.char(0, 255, 0, 0, 0, 255, 255, 0, 0, 255, 0, 255, 255, 255, 0, 0, 255, 255)) -- GBR and CMY en GBR WS2813!
|
||||
|
||||
ws2812.write(string.char(0, 255, 0, 0, 0, 255/3, 255, 0, 0, 255, 0, 255, 255, 255, 0, 0, 255, 255)) -- vert compensé GBR and CMY en GBR WS2813!
|
||||
|
||||
ws2812.write(string.char(128, 255, 128, 200, 200, 255, 255, 200, 200, 255, 255, 255, 40, 40, 40, 5, 5, 5)) -- White RGB & White 100/50/10%
|
||||
|
||||
ws2812.write(string.char(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) -- LED OFF
|
||||
|
||||
@@ -7,7 +7,7 @@ dofile('wifiap.lua')
|
||||
-- LED init (strip with 72 leds)
|
||||
print("Initializing LED strip...")
|
||||
ws2812.init()
|
||||
strip_buffer = ws2812.newBuffer(3, 3)
|
||||
strip_buffer = ws2812.newBuffer(6, 3)
|
||||
ws2812_effects.init(strip_buffer)
|
||||
-- initially all leds off
|
||||
ws2812_effects.set_speed(200)
|
||||
|
||||
Reference in New Issue
Block a user