Updated Lua Scripting (markdown)

This commit is contained in:
rusefillc 2022-09-13 16:49:32 -04:00
parent a71b3430f1
commit ed8f542d98
1 changed files with 11 additions and 4 deletions

View File

@ -343,10 +343,6 @@ Set the duty cycle of the specified PWM channel.
## Examples
# BMW iDrive
See https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/examples/bmw-idrive.txt
# timer
```lua
t = Timer.new();
@ -484,4 +480,15 @@ sparkCutByTorque = curve(sparkCutCurve, torque)
## See also
# BMW iDrive
See https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/examples/bmw-idrive.txt
More examples at https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/examples/
See also a library for CAN data manipulation https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/lua_lib.h
See also test driven development approach https://github.com/rusefi/rusefi/tree/master/unit_tests/tests/lua
[Lua Ternary Operator](http://lua-users.org/wiki/TernaryOperator)