McRat
11-22-2006, 08:56 AM
Greetings, first stupid question time~!!
I have the Pro Dev Board with a BS2 in it.· I could not get the USB driver to work (not unusual for this computer), so I'm interfaced on the RS232.· I can communicate with board now.
I am running the BS Editor 2.2.6 and typed in the first practice project (StampWorks EXP1, pg26):
' {$STAMP BS2}
'--------set var for pin0--------
······· AlarmLed··PIN···· 0······ '
'--------set delay const--------·······
······· FlashTm·· CON···· 500····· '
·······
Main:
········· HIGH AlarmLed
········· PAUSE FlashTm
········· LOW AlarmLed
········· PAUSE FlashTm
········· GOTO Main
However this will not pass syntax checking.· It chokes on the PIN keyword, expecting a : symbol.· The example code does not use one, nor will adding one stop the error.
If I change the PIN to CON, the experiment works great, and I can control the LED:
' {$STAMP BS2}
······· AlarmLed· CON···· 0······ '
······· FlashTm·· CON···· 500····· '
······· Main:
········· HIGH AlarmLed
········· PAUSE FlashTm
········· LOW AlarmLed
········· PAUSE FlashTm
········· GOTO Main
Is there a specific reason to use PIN, and if so, what am I doing wrong?
I have the Pro Dev Board with a BS2 in it.· I could not get the USB driver to work (not unusual for this computer), so I'm interfaced on the RS232.· I can communicate with board now.
I am running the BS Editor 2.2.6 and typed in the first practice project (StampWorks EXP1, pg26):
' {$STAMP BS2}
'--------set var for pin0--------
······· AlarmLed··PIN···· 0······ '
'--------set delay const--------·······
······· FlashTm·· CON···· 500····· '
·······
Main:
········· HIGH AlarmLed
········· PAUSE FlashTm
········· LOW AlarmLed
········· PAUSE FlashTm
········· GOTO Main
However this will not pass syntax checking.· It chokes on the PIN keyword, expecting a : symbol.· The example code does not use one, nor will adding one stop the error.
If I change the PIN to CON, the experiment works great, and I can control the LED:
' {$STAMP BS2}
······· AlarmLed· CON···· 0······ '
······· FlashTm·· CON···· 500····· '
······· Main:
········· HIGH AlarmLed
········· PAUSE FlashTm
········· LOW AlarmLed
········· PAUSE FlashTm
········· GOTO Main
Is there a specific reason to use PIN, and if so, what am I doing wrong?