take a look at the firmataExample, there you can see how to control a led and a potentiometer through an arduino with oF. you’ll need to upload the firmata sketch to the arduino. from the arduino ide go to File > Sketchbook > Examples > Library-Firmata > standard firmata
open that example and upload it. then you can program the arduino directly from oF as it’s shown in the firmataExample.