p.send($w, $a, port, value)
$w means you are writing on the port $a that the port is analog (well, simulated via PWM)
Best
-a-
where port is the PWM port you want (there are six: 3,5,6,9,10,11) and value an int in [0,255] for your led Also, What is the second argument 11520 in the code below?
data transfer rate of the serial. Keep it high as it is, it works in my experience
Best
-a-
p = ArduinoSMS("/dev/tty.usbserial-A6008aL8", 115200); // was 9600 (changed by thor)
Thanks, R
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino -------------------------------------------------- " This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski)
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino -------------------------------------------------- " This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski)
|