The right column of the following table is generated by embedded Lua code:
And now let's test CGI. Use the form below to control the on-board LED.
The LED is now ON'
elseif reqdata['ledoff'] then
pio.pin.setlow( pio.PF_0 )
print '
The LED is now OFF'
elseif next(reqdata) ~= nil then
print '
Invalid CGI request!'
end
?>
Press
here to go to a test page generated completely by a Lua script.
AND MOST IMPORTANTLY... remember to have fun with eLua! :)