- ajouté les fichiers Lua à Hugo :-)

This commit is contained in:
Christian Zufferey
2018-07-22 12:47:37 +02:00
parent 4608e4092e
commit 26d3f422cd
31 changed files with 1346 additions and 0 deletions

13
Hugo/init.lua Executable file
View 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)