Bs1usb
LadderWalker
Posts: 4
Does anybody know if it is possible to have a program communicate with the BS1USB? For instance when u hit a certain key it turns on an LED or something like that.
james
james
Comments
james
If you’re asking if the BS1-USB will operate without the PC that programmed it, the answer is yes. Once you download the program to the BS1-USB it remains on it and runs whenever the unit is powered from 5V. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
in the syntax guide it says the pins are bit addressable.
so instead of having to do
high 0
high 1
high 2
low 3
low 4
low 5
high 6
high 7
i could just use WRITE PINS, %11000111
not sure if this can be done, just wondering. thanks.
this is the code i tried.
' {$STAMP BS1}
' {$PBASIC 1.0}
MAIN:
SYMBOL e = PINS
SYMBOL d = DIRS
WRITE d, %11111111
WRITE e, %10101011
END
but didn't work.
On the BS1, there's no way to interrupt statements like SERIN or COUNT that execute for a prolonged period of time (other than by resetting the chip).