You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is code that runs on the Arduino, not Qt. Firmata.cpp, ConfigurableFirmata, etc is the Firmata host application that runs on the Arduino (or other compatible board). To use Firmata with Qt you need to write a firmata client application for QT that implements the Firmata protocol. I suggest using the firmata test application as a reference.
You could also look into any of the Firmata client libraries listed in the readme file to see how a Firmata client is implemented.
can i use the Firmata on Qt (C++)
i have this kind of problem
i dunno, how should i include the arduino.h inside the qt..
and also can i use encoderfirmata.h with firmata.h?
because within encoderfirmata
define ENCODER_ATTACH (0x00)
define ENCODER_REPORT_POSITION (0x01)
define ENCODER_REPORT_POSITIONS (0x02)
define ENCODER_RESET_POSITION (0x03)
define ENCODER_REPORT_AUTO (0x04)
define ENCODER_DETACH (0x05)
and within firmata.h
// pin modes
define INPUT 0x00 // defined in wiring.h
define OUTPUT 0x01 // defined in wiring.h
define ANALOG 0x02 // analog pin in analogInput mode
define PWM 0x03 // digital pin in PWM output mode
define SERVO 0x04 // digital pin in Servo output mode
define SHIFT 0x05 // shiftIn/shiftOut mode
define I2C 0x06 // pin included in I2C setup
define TOTAL_PIN_MODES 7
any idea? thx before
The text was updated successfully, but these errors were encountered: