Hi, how i can with arduino with firmata library and processing read internal values? I can read only values of analog pins and state of digital I/O (low, high). I want read value of PWM which i set with buttons on arduino.
[sorry for my bad english]
Hi, how i can with arduino with firmata library and processing read internal values? I can read only values of analog pins and state of digital I/O (low, high). I want read value of PWM which i set with buttons on arduino.
[sorry for my bad english]
The Firmata library has a sendString method and a processInput method.
Use the sendString method to send a message to the Arduino, requesting the specific data you want it to return.
On the Arduino, read that message, decode it, return the requested information.
In Processing, then, use the processInput method to get the serial data. Decode and use the data.
Can you give an example?