Hi Guys,
I'm just getting started on the whole Arduino thing and I've hit a wall. I've modified code found here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267104041
What I am hoping for is to have 3 sliders for R, G & B, and a fourth that controls the servo.
The setup is fairly simple: pin 9, 10 and 11 are R, G and B respectively. Pin 3 is the servo.
The problem in a nutshell:
If I comment out: "servoMain.attach(servoPin);", the RGB sliders work fine.
If i leave this code in, the servo slider works fine and the B slider works fine, but the others play up.
(Moving them simply switches them to full value of that colour, and on the R slider, it also is sending some weirdness to the servo)
If anyone has any pointers, or any pointers in general about my approach and why it's flawed, please, I'd love to hear them.
Kind Regards,
Lachlan
Sourcecode:
serialRGB.ino
gui.py