Firmware development updates

It was strangely easy to add scripting. The latest build has two new commands: script and tutorial. Both are based on the same scripting system.

# This is a sample tutorial!
# Welcome!
# This is some syntax, hit enter to execute it!
[0x00 0xff r:2]
# This is a comment! It's not executed!
# Here's a full on command!
# Hit enter to execute it!
pause
# Did it pause?

Very simple text format for tutorials and scripts.

  • Lines with # are comments and will (optionally) be printed in the terminal.
  • Anything else is shoved into the command prompt to be executed

Options:

  • -p pause at each command prompt and wait for<enter> key
  • -d don’t display comments
  • -e exit script in case of an error

tutorial is just an alias of script with fixed settings & a first-prompt tip to hit enter.

There’s a new git repo for scripts, tutorials, macros, datasources, etc. Feel free to make pull requests, please include some kind of name/handle and license. Eventually there will be a second download of datasources to copy to the flash drive, in addition to the firmware.

Scripting is recursive, and may need to move to the main loop statemachine…

There are also some minor updates to the user defined macro mode.

1 Like