STEMBoT 2 User’s Manual
========================================================================
(Method) -
read(RemoteData, timeout)
- Reads the current radio data and puts
the information into a RemoteData object. If data cannot be read before the
timeout, nothing happens.
(Class) -
RemoteData()
- Used to store remote controller data
(Object) -
buttons
- A length 15 bytearray object that stores data on which
remote controller buttons are being pressed. Used with bitwise operators and the
“_BIT” objects to determine the state of single buttons.
(Object) -
ljoy_up_down
- Contains a numerical value representing the up/down
position of the left joystick.
(Object) -
ljoy_left_right
- Contains a numerical value representing the left/right
position of the left joystick.
(Object) -
rjoy_up_down
- Contains a numerical value representing the up/down
position of the right joystick.
(Object) -
rjoy_left_right
- Contains a numerical value representing the left/right
position of the right joystick.
(Object) -
SLCT_BIT
,
STRT_BIT
- Numerical value representing the select and start
buttons. To be compared with the RemoteData().buttons object.
(Object) -
L1_BIT
,
L2_BIT
,
L3_BIT
,
R1_BIT
,
R2_BIT
,
R3_BIT
- Numerical value
representing the left and right buttons (L3 and R3 are the joystick buttons). Used in
conjunction with the RemoteData().buttons object.
(Object) -
DPAD_UP_BIT
,
DPAD_RT_BIT
,
DPAD_DN_BIT
,
DPAD_LT_BIT
- Numerical
value representing the buttons on the directional pad. Used in conjunction with the
RemoteData().buttons object.
(Object) -
A_BUTTON
,
B_BUTTON
,
X_BUTTON
,
Y_BUTTON
- Numerical values
representing the colored buttons. Used in conjunction with the RemoteData().buttons
object.
(Module) -
pnp
(Class) -
GPIO(position)
- Used to access the UEXT port as pins (also for the LED plug
and play modules). Accepts one parameter, either “top”, “left”, or “right”.
(Method) -
togglePin(pin)
- Toggles the given pin between on and off states.
(Method) -
allOn()
- Turns on all of the pins.
(Method) -
allOff()
- Turns off all of the pins.
(Class) -
SevenSegmentDisplay(position)
- Used to access the methods of the seven
segment display (SSD) plug and play module. Accepts one parameter, either “top”, “left”,
or “right”.
(Method) -
clear()
- Turns off all of the LEDs on the SSD.
(Method) -
displayNumber(x)
- Displays a given number. Only integers from 0 to
9 are allowed.
(Method) -
toggleDP()
- Toggles the decimal point.
========================================================================
Revision 1.1.0 : January 2021
Summary of Contents for STEMBoT 2
Page 1: ...User s Manual Rev 1 1 0 ...