Page 66
thread_wait [Category: Threads]
Format:
void
thread_wait(
thread
id);
The
thread_wait
function is used to wait for a thread that has been started by
thread_start
to
finish, where
id
is the thread ID value returned by
thread_create
when the thread was created.
x_button [Category: Sensors]
Format
:
int
x_button();
Reads the value (0 or 1) of the X button. This button is an extra button. Use
extra_buttons_show() to show the X, Y, and Z buttons. See also
extra_buttons_hide
,
get_extra_buttons_visible
.
x_button_clicked [Category: Sensors]
Format:
int
x_button_clicked();
Gets the X button's state (pressed or not pressed). If pressed, blocks until the button is
released. Returns 1 for pressed, 0 for not pressed. The "debounce" construction
while
(x_button()==0) {
while
(x_button()==1); . . .}
is equivalent to
while
(x_button_clicked()==0) {. . .}
This button is an extra button. Use
extra_buttons_show
to show the X, Y, and Z buttons. See
also
extra_buttons_hide
,
get_extra_buttons_visible
.
y_button [Category: Sensors]
Format:
int
y_button();
Reads the value (0 or 1) of the Y button. This button is an extra button. Use
extra_buttons_show
to show the X, Y, and Z buttons. See also
extra_buttons_hide
,
get_extra_buttons_visible
.
y_button_clicked [Category: Sensors]
Format:
int
y_button_clicked();
Gets the Y button's state (pressed or not pressed). If pressed, blocks until the button is
released. Returns 1 for pressed, 0 for not pressed. The "debounce" construction
while
(y_button()==0) {
while
(y_button()==1); . . .}
is equivalent to
while
(y_button_clicked()==0) {. . .}
This button is an extra button. Use
extra_buttons_show
to show the X, Y, and Z buttons. See
also
extra_buttons_hide
,
get_extra_buttons_visible
.
z_button [Category: Sensors]
Format:
int
z_button();
Reads the value (0 or 1) of the Z button. This button is an extra button. Use
extra_buttons_show
to show the X, Y, and Z buttons. See also
extra_buttons_hide
,
get_extra_buttons_visible
.
z_button_clicked [Category: Sensors]
Format:
int
z_button_clicked();
Gets the Z button's state (pressed or not pressed). If pressed, blocks until the button is
released. Returns 1 for pressed, 0 for not pressed. The "debounce" construction
while
(z_button()==0) {
while
(z_button()==1); . . .}
is equivalent to
while
(z_button_clicked()==0) {. . .}
This button is an extra button. Use
extra_buttons_show
to show the X, Y, and Z buttons. See
also
extra_buttons_hide
,
get_extra_buttons_visible
.