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

DAT formatting

RagtopRagtop Posts: 406
edited 2010-10-29 14:13 in Propeller 1
I have 106 values that I want to put in an array called play. Do they all have to go on one line?

Spin doesn't seem to like commas started or ending a line.
DAT
   Play   long 
            85605 200014 245537 359598 405467 519198 565066 599342 644534 758606
            804461 918206 964077 998014 1043555 1077838 1123018 1157294 1202481 1236750
            1282281 1316222 1361744 1475838 1521369 1555646 1600840 1635118 1680644 1794718
            1840247 1954318 1999847 2113246 2159099 6188878 6274477 6388558 6434430 6548174
            6594033 6708110 6753974 6787918 6833446 6947198 6993066 7106798 7152664 7186942
            7232461 7266398 7311918 7345854 7391385 7425662 7470850 7505118 7550320 7664414
            7710280 7744222 7789740 7824014 7869201 7983278 8028805 8142894 8188757 8301822
            8347685 12378894 12464495 12578558 12624429 12738510 12784049 12898126 12943998 12977934
            13023467 13137214 13183082 13297166 13342690 13376958 13422494 13456430 13501957 13535902
            13581425 13615694 13660899 13695182 13740379 13854462 13900335 13934286 13979815 14013758
            14059277 14173358 14218888 14332974 14378834 14492238 14537765

Comments

  • Bobb FwedBobb Fwed Posts: 1,119
    edited 2010-10-29 10:33
    How about this?
    DAT
    Play     long 85605, 200014, 245537, 359598, 405467, 519198, 565066, 599342, 644534, 758606
             long 804461, 918206, 964077, 998014, 1043555, 1077838, 1123018, 1157294, 1202481, 1236750
             'etc
    
  • RagtopRagtop Posts: 406
    edited 2010-10-29 11:15
    Thank you!

    I am trying to use Gadget Gangster's Magic IR to trigger the play button on my Bose, but I keep getting a different set of values each time.

    It works when I use the demo program, but when I try to feed magicir.playcode(4,play,127) from the DAT file, no go.
  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-10-29 14:13
    Ragtop wrote: »
    I am trying to use Gadget Gangster's Magic IR to trigger the play button on my Bose

    Does it use a standard IR protocol? If yes, it would be cleaner to develop a driver for it. I've written three (SIRCS, RC-5, and one other); it's not difficult to do and will probably give you better performance.
Sign In or Register to comment.