I have a project I'm trying to perfect that involves an Android app and Arduino Mega with Ethernet Shield. Simply put, I send commands to the Arduino to control a pin with the format s-[pin] [state] so for example set pin 5 as high would be "s-5-1".
I am able to control pins 2 - 9 fine, but once I get to the double digit pins, it won't work. Am I missing something here? Still new to C, so I wasn't sure if there are any considerations that I'm missing.
Still new to C, so I wasn't sure if there are any considerations that I'm missing.
If the code you have doesn't work, there is either something wrong with it or with the hardware. It is trivial to eliminate hardware as an issue, so that leaves the code you did NOT post are the most likely culprit.