Node.js library for the UDOO Neo

Discussion in 'UDOO NEO' started by Julien, Nov 23, 2015.

  1. Julien

    Julien New Member

    Joined:
    Nov 8, 2015
    Messages:
    21
    Likes Received:
    9
    Hi, I've been working on this for about 2 weeks and though it's not fully functional I think it's time to share it and maybe get some feedback and ideas. Known issue: setValue does not seem to actually change the value. But since I haven't tested it with real sensors yet I'm not sure.

    What you can do right now is read the value of all the GPIOs, trigger your own callback function when a value changes, and read the values of the internal motion sensors (accelerometer, gyroscope and magnetometer). I will shortly make a web page to showcase the functionality available so far.

    The repository is on Github: https://github.com/bouiboui/udooneo
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Great job Julien! I have just shared it on Fb and Tw, hoping many users will give you feedback :)
     
  3. Julien

    Julien New Member

    Joined:
    Nov 8, 2015
    Messages:
    21
    Likes Received:
    9
    Awesome, thank you ! I will try to add support for the barometer and temperature bricks next.
     
    Andrea Rovai likes this.
  4. Julien

    Julien New Member

    Joined:
    Nov 8, 2015
    Messages:
    21
    Likes Received:
    9
    I rewrote a lot of the library to make it less verbose. Now, controlling a pin is as easy as require("udooneo").GPIO(37).out().val(1);
    The link is still the same: https://github.com/bouiboui/udooneo

    Andrea, do you know why I can't seem to read the GPIO values ? I've tried with several sensors, and no luck. Is there a fix in the works or is it just me? What can I do?
     
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Don't know, sorry ;(
     

Share This Page