simlrh / firmatacpp Goto Github PK
View Code? Open in Web Editor NEWA C++ firmata client library.
License: Apache License 2.0
A C++ firmata client library.
License: Apache License 2.0
In the example simple.cpp the reading of the digital port is not working. When I run the example the analog ports A0 and A1 are reported but the digital pin 2 are not. Apart from this problem, how to map the ports to pins? For example, if I want pin 7 to be reported which port I should pass as argument to "reportDigital (port, enable)".
Hello,
First, thank you very much for this library, nicely written.
I have used it with success on an Arduino Uno but did not managed to get it running with an Arduino Leonardo.
The difference is that the Arduino Leonardo provides the virtual serial port by itself so a new serial connexion do not reset the board and it is maybe the cause of the issue.
I have tried to use another Firmata client, pymata-aio and it works well with Arduinos Uno, Mega and Leonardo. But I would prefer to use a C++ library.
I will try to investigate a bit but I opened the issue to get your thoughts on that.
Thanks.
Using digitalWrite has no effect. The reason is a wrong definition of the message in format_constants.h
#define FIRMATA_SET_DIGITAL_PIN 0xF4
should be
#define FIRMATA_SET_DIGITAL_PIN 0xF5
https://github.com/firmata/protocol/blob/master/protocol.md#control-messages-expansion
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.