This implements the Firmata protocol for Go. It includes protocol extensions for AccelStepperFirmata and some other components of the configurable firmata protocols.
The sketches
directory contains example Arduino sketches based on the source
code generated by the Firmata Builder.
- Upload an appropraite Arduino sketch. The sketch will listen on the serial pins and respond to commands issued to it.
- Open the Arduino's serial port on the controlling computer.
- Connect gomata to the opened serial port.
- Issue commands to the Arduino
- Consume replies from the issued commands using
PinStates()
and friends.
- Reporting analog appears to only work if the pin mode is set to analog.
- Analog values appear to be delivered on the sampling interval regardless of changes