Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmata with Qt is not working #137

Closed
henryghmjm opened this issue Jul 7, 2014 · 2 comments
Closed

Firmata with Qt is not working #137

henryghmjm opened this issue Jul 7, 2014 · 2 comments

Comments

@henryghmjm
Copy link

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..
firmata problem

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

@soundanalogous
Copy link
Member

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.

@henryghmjm
Copy link
Author

Thanks a lot jeff..

I will see it through..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants