running arduino through processing using firmata

hello

I've got some fans and a motor hooked up to an Arduino and that's all fine, but I want to get them to run at certain points during a video. Apparently, this can be done by running the Arduino through processing using this firmata software.

I'm testing it out first, with just the fans but I cant seem to get it to work. I followed all the instructions uploading the firmata code to the arduino and this is my code:

import cc.arduino.;
import org.firmata.
;

import processing.serial.*;

Arduino arduino;
int fans = 11;

void setup()
{
//println(Arduino.list());
arduino = new Arduino(this, "/dev/cu.wchusbserial1420", 57600);
arduino.pinMode(fans, Arduino.OUTPUT);
}

void draw()
{
arduino.digitalWrite(fans, Arduino.HIGH);
delay(10000);
arduino.digitalWrite(fans, Arduino.LOW);
delay(10000);
}

I'm fairly new to Arduino and processing and I've only really done simple stuff before, so I'm pretty baffled.
Has anyone used this software before?? Where am I going wrong!?
Any help would be hugely appreciated