I have a question regarding Arduino Serial Communication. I have written a program in Visual Basic to control the Arduino Board and I am sending strings through the serial from Visual Basic. For example, I want to send "1;255". In this string, the number "1" is the pin number and the number "255" is the analog value that needs to be written to the pin. However, I am unable to write a program that takes everything to the left of the semicolon and declare it to be the pin number and take everything to the right of the semicolon and set it to be the analog value that needs to be written to the pin. Can somebody help me with the program. I am a new comer to Arduino Programming. So I will appreciate if somebody wrote me a complete program and tell me what each of the line in the code does!
Thanks and Regards, Sudhanva Sreesha email@example.com