|
BUTTON is a PBASIC command that is not available to us in the Innovation First Robot Controller. Only a small number of the PBASIC commands are actually of use to us.
The BUTTON command works on a physical pin. The BS2SX our robot programs run on doesn't have access to any of the inputs and outputs on the RC.
p4_sw_aux1 is aliased to a bit in either oi_swA or oi_swB which is passed to us via the SERIN command. You will need to do something like what PyroPhin said to do.
|