mikaelpatel / Arduino-Shell

RPN Postscript/Forth Command Shell for Arduino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhance: Define named scripts in sketch (C++)

mikaelpatel opened this issue · comments

It should be possible to set a variable or function from the sketch. This allows the application to define a set of scripts.

shell.set(name, value);
shell.set(name, script);

Please see commit e6f910e, ebcbb00 and c334928.

How about loading the stack before running the script?
Can I do:
shell.push(0); shell.push(4); shell.execute(script0);

That has been available for a while now :).

Allow scripts from SRAM and PROGMEM to be set. Please see commit dfa2fc5.