Error message "Label is missing a ':'"
'O Flyer
Posts: 9
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·
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 Williams
Applications Engineer, Parallax
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