The plugin 7-segment indicators on shift registers 74hc595 for DoT
or manual
--initialization
t={}
t.latch=6 -- pin of the shift register latch 74hc595
t.qty=6 -- number of shift registers 74hc595
t.type=false -- (optional def. false) true = common cathode, false = common anode
t.speed=1000 -- (optional def. 500)
dofile("LCD_7SEG_74HC595.lua")({init=t})
-- Send a number.
dofile("LCD_7SEG_74HC595.lua")({set="123456"})
-- Send a number with a shift.
dofile("LCD_7SEG_74HC595.lua")({step="012345",speed=500}) -- speed - (optional)
-- Send a number with a shift. After completion, the callback function is executed
dofile("LCD_7SEG_74HC595.lua")({step="123456"},function(t)
print(t)
end)
- (bondrogeen) init.