hi, if you take a look to the firmataExample, it do just that, make a led blink + also read the values from a potentiometer. if you are used to programming the arduino, you’ll see this is really similar. You will need to upload the StandardFirmata sketch to the arduino first. from the arduino ide go to file > sketchbook > examples > Library -firmata > StandardFirmata. and upload it to the arduino. with this you can control any oin directly from oF
one thing to watch out for is in the latest arduino (version 17), the standard firmata default speed is changed. in the standard firmata sketch in arduino (file->examples->firmata->standard firmata) you’ll notice:
Firmata.begin(57600);
this has changed in the latest version, and you’ll either need to change the OF code to match that new baud rate (it’s clear that we set it up as 115200 if you open up our firmata example and look at the setup in testApp.cpp), or change the baud rate in the firmata code on the arudino side to match us (115200). probably it’s cleaner to alter OF to match. Obviously, you’ll get funky behavior if they don’t match.
in earlier versions of arduino, the baud rates matched – in our next release will match it up and include some info about the change. Just an example of release schedules differing