LUAndroid User Documentation
Embedded operating system that runs LUA scripts
Brought to you by:
luandroid
The pin will toggle it's logic state. The pin has to be set as output with ldro.dio.output function.
toggle(pinID)
number pinID Pin number to toggle logic state
Nothing
pins=require("ldro.dio")
print("Pin 8 toggling 10 times")
pins.output(8) --Pin 8 is now configured as digital output
for i=0,10 do
pins.toggle(8)
end