I'm trying to send information from the computer to the LED's hooked up to the PWM pins on my arduino but I can't seem to figure out the Serial interface for it.
I just tried to install SimpleMessageSystem, but I can't get the messageBuild() command to return anything other then 0. Does anyone know what I might be doing wrong?
I extracted SimpleMessageSystem.zip to C:\progra~1\arduino-0011\hardware\libraries
Loaded the arduino software and in my program selected Sketch->Import Library->SimpleMessageSystem
It puts an include at the top #include <SimpleMessageSystem.h>
In my loop function I make a call to:
void checkForData()
{
Serial.println("Checking");
if (messageBuild() > 0)
{
Serial.println("Message Built");
switch (messageGetChar())
{
case 'w':
Serial.println("WritePin");
writePin();
}
}
}
But when I run it and send "w a 3 255 ", all I see is "Checking" in the Serial input window.