Having a hard time sending the propeller commands serially
turbosupra
Posts: 1,088
Here is my code
http://turbosupra.herobo.com/hosting/10-26-11.zip
I'm trying to tell the propeller how many times to flash pin 23 (LED) before a 2 second pause. Through the parallax serial terminal, I am sending the code "flashes=4" and you'll see in the parallax serial terminal that something goes awry with the variables value after it updates.
I believe I may have a problem with my variable "flashes" which is a long, and < (less than) might not work well with longs, but I'm really not sure.
Any direction on this would be very much appreciated, I've been working on this for about 2 months and am close, but cannot seem to get past this issue. I'll keep plugging away but would like some direction. Thanks for reading.
http://turbosupra.herobo.com/hosting/10-26-11.zip
I'm trying to tell the propeller how many times to flash pin 23 (LED) before a 2 second pause. Through the parallax serial terminal, I am sending the code "flashes=4" and you'll see in the parallax serial terminal that something goes awry with the variables value after it updates.
I believe I may have a problem with my variable "flashes" which is a long, and < (less than) might not work well with longs, but I'm really not sure.
Any direction on this would be very much appreciated, I've been working on this for about 2 months and am close, but cannot seem to get past this issue. I'll keep plugging away but would like some direction. Thanks for reading.
Comments
I tried to unzip the archive but I only get an error-message zip-file damaged.
I'm trying to help without seeing the code anyway. If you receive the character-sequence "flashes=4" this has to be stored into a bytearray. (= which acts as a string-"container")
Of course you can put an external link into a posting. You can attach zip-files to a posting too.
keep the questions coming
best regards
Stefan
Duane
Stefan, I will email it to you and try to work on the byte array after that.