ofArduino, limited to 13 pins. Any way to increase this?


We’re trying to use all pins on an arduino mega but seems like we’re capped at 13 pins.
Any (non-hardware) way to increase this?


I am working on the next release version that brings the protocol up to snuff with firmata 2.5.

This should enable you to use every pin on the mega and includes updated features like i2c, onewire, stepper, and encoder support. Note that some of those features haven’t been tested as much as others but all core functionality has been tested


Really cool stuff!


Sorry i am realy new at this and need to make this work … how do i implement this code to arduino … sorry :slight_smile: (stupit art students, right? :D)


We all have to start somewhere :slight_smile:

Anyways you should probably look at this: https://openframeworks.cc/ofBook/chapters/hardware.html
But in the simplest terms, load firmata onto an arduino, it should come automatically in the Arduino IDE as one of the examples and you just want StandardFirmata.

Then wherever you downloaded Openframeworks you should have an example in examples/communication/firmataExample and that should be the basics of using ofArduino.

If you are asking how do you use more pins I am not sure why but the most recent ofArduino files don’t seem to be packaged with the newest releases despite having been checked in well over a year ago. If you want to you can just replace the files in your libs/openframeworks/communication folder with the ones here: https://github.com/openframeworks/openFrameworks/tree/master/libs/openFrameworks/communication

Hope that helps