Hi. I was trying a few options for an Arduino interpreter , the goal is to be able to send any command using serial , like inputs,outputs,conditions,loops,and basic math operations. Also, to be able to save these to EEPROM for use on start up .
1.bitlash- which has limitations that I can't solve, and is not being updated anymore. 2.Firmata- which seems huge, but is very unfriendly ( in comparison to bit lash), and I can't really understand if its capable of what we need.
and there are few more small solution which I doubt about them.
[u]Writing my own :[/u]
So, for the basic stuff, its pretty easy to write built in functions , read the serial, and then use some basic protocol to decide which function I am going to call ( inputs and outputs).
The main problem, starts when you need to do things such get a variable, do math operations, basic "if" conditions, etc,
for example, I would like to get something like this from serial and do it :
a=read some input a=a*b output(a)
Here I will have to write a lot of code that interpreter this . (not mention "if" statement ).
So, I wonder if there is some transparent interpreter(or a direction to write one) that gets the serial data, and only do the "software" stuff, not the hardware, which means :
Get from serial missions like : -operations on local variables (+,-,*,/,) -conditions and loops(if,while)
that is completely transparent- means I control the serial input and can modify it.
Any direction would be great, thanks!