Shop OBEX P1 Docs P2 Docs Learn Events
DAT — Parallax Forums

DAT

MacGeek117MacGeek117 Posts: 747
edited 2007-01-30 17:01 in Propeller 1
Would this work as coded, or would I have to step through each line of nulls?(I don't have a Prop yet.)
RoboGeek

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"

Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-29 20:23
    I'm not sure what you're trying to do. The rgb.set routine will receive the address of the first byte in the DAT section ("welcome"). As you've written it, this address will be the address of the start of a block of 64 zero bytes. In the rgb.set routine, you can (and must) organize this any way you want.
  • MacGeek117MacGeek117 Posts: 747
    edited 2007-01-29 21:15
    What I'm trying to do is drive the RGB LED Matrix Serial backpack from SparkFun.(I've posted the docs on it) What I'm asking is the way this is coded, will the the object read the whole block, or only the first line?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-29 21:44
    The compiler just compiles the DAT section into a series of byte values, so all 64 bytes are sequential with no way to tell which byte was from which line of the program. If you write your object to start with the byte whose address is passed and continue through 64 successive bytes, yes, it will read the whole block you've written in your fragment.
  • MacGeek117MacGeek117 Posts: 747
    edited 2007-01-30 17:01
    Thank you, Mike! You're a lifesaver!
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
Sign In or Register to comment.