Shop OBEX P1 Docs P2 Docs Learn Events
Having a hard time sending the propeller commands serially — Parallax Forums

Having a hard time sending the propeller commands serially

turbosupraturbosupra Posts: 1,088
edited 2011-10-26 10:54 in Propeller 1
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.

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2011-10-26 10:02
    Hi Brad,

    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 DegnDuane Degn Posts: 10,588
    edited 2011-10-26 10:22
    I also couldn't unzip the file. I'm having internet trouble so I wasn't sure if the original file was bad or not.

    Duane
  • turbosupraturbosupra Posts: 1,088
    edited 2011-10-26 10:36
    It's me I think, the work firewall makes it so that I cannot upload attachments directly to the forum, so I'm trying the direct link to a host instead. I'm sorry about that everyone.

    Stefan, I will email it to you and try to work on the byte array after that.
  • turbosupraturbosupra Posts: 1,088
    edited 2011-10-26 10:54
    Is there a way (api) to email the forums and have a file hosted/uploaded?
Sign In or Register to comment.