From: David A. M. <da...@me...> - 2013-08-23 19:47:10
|
Thanks for the suggestions. BTW, if anyone wants to try the updated version, you can get a zip here: https://github.com/firmata/processing/blob/dev/processing-arduino.zip?raw=true I'm planning to push this to the Processing contributed library system soon, so please try it out if you get a chance. David On Thu, Aug 22, 2013 at 3:37 PM, Jeff Hoefs <sou...@gm...>wrote: > Here are a couple of complete Firmata 2.3 implementations that may be > helpful for a reference: > > https://github.com/jgautier/firmata/blob/master/lib/firmata.js > https://github.com/soundanalogous/Breakout/blob/master/src/core/IOBoard.js > > You may also want to consider adding a Pin class. That way you can track > pin mode, resolution, value, state (which is different than value - you get > it via a pin state query) etc. When you get the capability query and analog > mapping query responses you can build arrays of Pins. That way you can > support any board defined in Boards.h. > > -jeff > > > On Thu, Aug 22, 2013 at 2:39 PM, David A. Mellis <da...@me...> wrote: > >> Hi all, >> >> I'm in the process of trying to update the Processing library for >> Firmata: https://github.com/firmata/processing/tree/dev >> >> So far, I've split out most of the Firmata protocol handling into a >> separate class that doesn't depend on Processing, so it can be used by >> other Java applications: >> https://github.com/firmata/processing/blob/dev/src/Firmata.java >> >> The API for the Processing library should be the same, though, and >> remains in Arduino.java. >> >> I've made an initial attempt to make the library work on multiple Arduino >> boards. The current strategy is to request streaming of all analog channels >> that exist (discovered with the analog mapping query) and to request >> streaming of all 16 possible digital ports (since the firmware will ignore >> ports don't exist on the board). >> >> Any comments or suggestions? >> >> David >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Firmata-devel mailing list >> Fir...@li... >> https://lists.sourceforge.net/lists/listinfo/firmata-devel >> >> > |