question about the BS1...yes the BS1...
denno
Posts: 230
in BASIC Stamp
I had a couple of them laying around, so I thought I would play with one....been playing with the BS2 family for years. Please see the very simple code sample..
I download the above, and the code runs. However, when I disconnect the power and reply power the program does not run. Seems like it is not loading in the EEPROM, only the RAM...so what am I doing wrong...LOL
Denno
' {$STAMP BS1}
' {$PBASIC 1.0}
SYMBOL button_in = PIN0
SYMBOL LED_out = PIN1
SYMBOL on_ = 1
SYMBOL off = 0
INPUT PIN0
OUTPUT PIN1
startover:
IF button_in = 1 THEN strobe_off 'where to go if condition is TRUE
LED_out = on_
PAUSE 5000
LED_out = off
strobe_off:
GOTO startover
END
I download the above, and the code runs. However, when I disconnect the power and reply power the program does not run. Seems like it is not loading in the EEPROM, only the RAM...so what am I doing wrong...LOL
Denno

Comments
DennO
Yes, I did try the PAUSE 100 between the OUTPUT statement and the GOTO startover...and I have tried two different BS1's..same result..
INPUT PIN0
OUTPUT PIN1
That was the problem..it should have been:
INPUT 0
OUTPUT 1
Like I said...first time with the BS1...when did the BS1 come out...25 years ago? Basic Stamps, and the prop, are still my first and only choice....in the hobbiest...embedded...projects...
dennO