Hi,
I'm pretty sure the comm is working because if I rewrite the code without the brightness settings, that is,
if (incomingByte == 'H') {
analogWrite(GREEN_LED, 255);
}
if (incomingByte == 'L') {
analogWrite(GREEN_LED, 0);
}
the code acts exactly the way I want it. Sending 'H' switches the LED ON(255) while sending 'L' switches the LED OFF(0). It is only when I try to control the brightness values that it fails to respond.
Out of curiosity, how do I use terminal to see that what I type echoes back?