Page 60
display_clear [Category: Output]
Format:
void
display_clear();
Clear the Link display for
display_printf
. See also
console_clear
.
display_printf [Category: Output]
Format:
void
display_printf(
int
col,
int
row,
char
s[], ...);
Perform a standard
printf
starting at screen location
col
,
row
. (
col
0 to 41,
row
0 to 9 - less if
extra buttons are turned on)
clear_motor_position_counter [Category: Motors]
Format:
void
clear_motor_position_counter(
int
motor_nbr);
Reset the position counter for the motor specified to 0.
cos [Category: Math]
Format:
double
cos(
double
angle);
Returns cosine of angle.
angle
is specified in radians; result is in radians.
digital [Category: Sensors]
Format:
int
digital(
int
p);
Returns the value of the sensor in sensor port
p
, as a true/false value (1 for true and 0 for false).
Sensors are expected to be active low, meaning that they are valued at zero volts in the active,
or true, state. Thus the library function returns the inverse of the actual reading from the
digital hardware: if the reading is zero volts or logic zero, the
digital
function will return true.
Valid for digital ports 8-15 only.
disable_servo [Category: Servos]
Format:
void
disable_servo(
int
p);
Disables specified servo port.
disable_servos [Category: Servos]
Format:
void
disable_servos();
Disables the servo motor ports (powers down all servo motors).
enable_servo [Category: Servos]
Format:
void
enable_servo(
int
p);
Enables specified servo port.
enable_servos [Category: Servos]
Format:
void
enable_servos();
Enables all servo motor ports.
exp10 [Category: Math]
Format:
double
exp10(
double
num);
Returns 10 to the
num
power.
exp [Category: Math]
Format:
double
exp(
double
num);
Returns e to the
num
power.
extra_buttons_show [Category: Output]
Format:
void
extra_buttons_show();
Shows the X, Y, and Z buttons on the Link display. Note: this reduces the display area for
printf
and
display_printf
. See also
extra_buttons_hide
,
get_extra_buttons_visible.
extra_buttons_hide [Category: Output]
Format:
void
extra_buttons_hide();
Hides the X, Y, and Z buttons on the Link display. Note: this is the default display configuration.
See also
extra_buttons_show
,
get_extra_buttons_visible.
Содержание KIPR Link
Страница 1: ...KIPR Link Manual Version BB2014 1 1...