- ajouté les fichiers Lua à Hugo :-)
This commit is contained in:
13
Hugo/init.lua
Executable file
13
Hugo/init.lua
Executable file
@@ -0,0 +1,13 @@
|
||||
--Programme qui démarre le robot en appuyant sur le bouton flash et le redémarre si le bouton flash est appuyer pendant 3 secondes
|
||||
print("\ninit.lua hv180717.1101\n")
|
||||
|
||||
zswitch=3 --switch flash
|
||||
gpio.mode(zswitch, gpio.INT, gpio.PULLUP)
|
||||
|
||||
function bouton()
|
||||
print("Start start_job.lua...")
|
||||
dofile("start_job.lua")
|
||||
end
|
||||
|
||||
gpio.trig(zswitch, "both", bouton)
|
||||
|
||||
Reference in New Issue
Block a user