Shop OBEX P1 Docs P2 Docs Learn Events
Error message "Label is missing a ':'" — Parallax Forums

Error message "Label is missing a ':'"

'O Flyer'O Flyer Posts: 9
edited 2005-10-27 21:15 in BASIC Stamp
Greetings,

Could·you tell me why, in the following declarations, the MSI in MSI/SensymSw gets highlighted for an error message that says "Label is missing a ':'" when I try to download it to my BS2e Stamp? I can send along more of the code if necessary. Thanks

'O Flyer

' {$STAMP BS2e}
' {$PBASIC 2.5}
CS0······ PIN··· 1
CLK······ PIN··· 2
DIO_n···· PIN··· 3
CS1······ PIN··· 4
AD······· VAR··· Word
config··· VAR··· Nib
startB··· VAR··· config.BIT0
sglDif··· VAR··· config.BIT1
oddSign·· VAR··· config.BIT2
msbf····· VAR··· config.BIT3
MSI/SensymSw········ PIN··· 6
RedButton··········· PIN··· 7
BlkButton··········· PIN··· 8
SLAPS······· VAR··· Word
idx········· VAR··· Nib
pressureAlt· VAR··· Word
altCorrn···· VAR··· Byte
indAlt······ VAR··· Word·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-27 20:23
    You're using an illegal character -- change "/" to "_"

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • 'O Flyer'O Flyer Posts: 9
    edited 2005-10-27 21:15
    Jon,

    I should have taken it as a hint from the Editor that PBASIC convention considers a name a label when part of a PIN declaration. I was SURE it was wrong!

    Thanks again

    'O Flyer
Sign In or Register to comment.