Page 63
printf [Category: Output]
Format:
void
printf(
char
s[], ...);
Prints the contents of the string referenced by s to the cursor position on the screen.
See the programmers manual embedded with the KISS IDE for more details.
random [Category: Math]
Format:
int
random(
int
m);
Returns a random integer between 0 and some very large number.
run_for [Category: Processes]
Format:
void
run_for(
double
sec,
void
<
function_name
>
);
This function takes a function and runs it for a certain amount of time in seconds.
run_for
will
return within 1 second of your function exiting, if it exits before the specified time. The
sec
argument denotes how many seconds to run the given function.
seconds [Category: Time]
Format:
double
seconds();
Returns the count of system time in seconds, as a floating point number. Resolution is one
millisecond.
set_a_button_text [Category: Sensors]
Format:
void
set_a_button_text(
char
txt[]);
This function sets the text displayed on the A button to be the text string specified rather than
'A'.
set_analog_pullup [Category: Sensors]
Format:
void
set_analog_pullup(
int
port,
int
pullupTF);
The purpose of this function is to enable or disable the pull up resistor present on each analog
port. Without the pull up resistor, the port is said to be floating. For example,
set_analog_pullup(3,0);
configures analog port 3 to be "floating" (no pull up resistor)
whereas
set_analog_pullup(3,1);
configures port 3 as pull up (enables the pull up
resistor). Since many analog sensors lack an integrated pull up resistor (the "ET" sensor being a
notable exception), all sensor ports are set to non-floating when the KIPR Link is rebooted or
when a program exits.
set_b_button_text [Category: Sensors]
Format:
void
set_b_button_text(
char
txt[]);
This function sets the text displayed on the B button to be the text string specified rather than
'B'.
set_c_button_text [Category: Sensors]
Format:
void
set_c_button_text(
char
txt[]);
This function sets the text displayed on the C button to be the text string specified rather than
'C'.
set_digital_output [Category: Output]
Format:
void
set_digital_output(
int
port,
int
inout);
Digital ports on the KIPR Link can be configured for either input or output. By default digital
ports are set for input. The statement
set_digital_output(9,1)
will configure digital
port 9 for output. The
port
parameter must be in the range of values 8-15.
Содержание KIPR Link
Страница 1: ...KIPR Link Manual Version BB2014 1 1...