summaryrefslogtreecommitdiff
path: root/mesecons_luacontroller/examples/clock.lua
blob: 262aac210b37a1498ca0377e2e6224b7d087c5f6 (plain)
1
2
3
4
5
6
7
--Interrupt-Driven Clock
--Continually pulses pin A, turning on/off once per second.

if event.type == "program" or event.iid == "clock" then
	port.a = not port.a
	interrupt(1,"clock",true)
end