Updated Lua Scripting (markdown)

This commit is contained in:
rusefillc 2021-10-19 10:50:40 -04:00
parent b3856b8830
commit 112505d94a
1 changed files with 18 additions and 1 deletions

View File

@ -196,4 +196,21 @@ Set the duty cycle of the specified PWM channel.
``luamemory``
``luareset``
``luareset``
## Examples
```
t = Timer.new();
function onTick()
auxV = getAuxAnalog(0)
if auxV > 2 then
t:reset();
end
val = t:getElapsedSeconds();
print('Hello analog ' .. auxV .. " " .. val)
end
```