Coder Social home page Coder Social logo

firmatac's People

Contributors

grandsmarquis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

firmatac's Issues

Doing an AIO read

I want to read A0 on my board, I'm not entirely sure how this works, and there's no example so was trying to write one. So far I have something like this:

firmata = firmata_new("/dev/ttyACM3");
firmata_pinMode(firmata, 14, MODE_ANALOG);
while(1) {
  firmata_pull(firmata);
  printf("read value: %d\n", firmata->pins[14].analog_channel);
}

Is 14 A0? or is it 0? And I'm guessing that doing the pull means I update the data available in t_firmata which is what I want but do I need the pinMode call and do I need to do someting else first like register for ADC updates/ask for it? Can I ask for just A0?

Similarly have you got any examples of how someone would do some i2c or spi?

Unable to write to Digital Pin

Hello!

I have included the library to my C++ project. When I try to run the example LED_Blink code, LED connected to pin 13 of my arduino Mega blinks in some pattern and returns the firmata version 2.3 which is currently running on my arduino board. I aslo get the command line prints saying the digital value of 1 has been written. But the LED does not turn on at all. Turning off LED also behaves the same way.

I used the firmata test program on my windows machine to check if the standard firmata works or not. It works perfectly well with the test program. Current version of firmata is 2.3.8.

If the firmware version is being returned correctly, why is the Digital write not working? Is there anything I'm missing here?

Appreciate your help. Thanks in advance..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.