Hi, I have a simple serial parseing code on my arduino that takes something like 13O1 to turn 13 output on
I added control for analog write where I send 13OA100 to set 13 output pwm100
I have it working fine if I write it in one string, but I tried making a slider in processing and send that variable to control the pwm
I debugged my slider and im getting a val 0-255 but when I send it it the actual output is random brightness
im sending it like this
If(pinnumber < 10) myport.write('0');
myport.write(pinnumber);
myport.write("OA");
If(analogvalue < 10) myport.write('0');
if(analogvalue < 100) myport.write('0');
myport.write(analogvalue);
Somehow its not sending right because I know its not the arduino side, and I even added a delay so it doesn't send it too fast, thought maybe that's why
anyone got a clue why?