Tells you, whether the named button is pressed or not.
int32_t ev3_button_pressed( enum ev3_button_identifier button )
Draws a filled circle
void ev3_circle_lcd( int32_t x, int32_t y, int32_t r, int32_t bit )
Draws a circle frame
void ev3_circle_lcd_out( int32_t x, int32_t y, int32_t r, int32_t bit )
Blanks the screen
void ev3_clear_lcd()
Closes the motor.
void ev3_close_motor( ev3_motor_ptr motor )
Closes the sensor.
void ev3_close_sensor( ev3_sensor_ptr sensor )
Sets the command of the motor, e.g.
ev3_motor_ptr ev3_command_motor( ev3_motor_ptr motor, int32_t command )
Sets the command of the motor, e.g.
ev3_motor_ptr ev3_command_motor_by_name( ev3_motor_ptr motor, char * command )
Deletes the linked list of available motors.
void ev3_delete_motors( ev3_motor_ptr motors )
Deletes the linked list of available sensors.
void ev3_delete_sensors( ev3_sensor_ptr sensors )
Draws a filled ellipse
void ev3_ellipse_lcd( int32_t x, int32_t y, int32_t rx, int32_t ry, int32_t bit )
Draws a ellipse frame
void ev3_ellipse_lcd_out( int32_t x, int32_t y, int32_t rx, int32_t ry, int32_t bit )
Returns the duty cycle of a motor
int32_t ev3_get_duty_cycle( ev3_motor_ptr motor )
Returns the duty cycle set point of a motor
int32_t ev3_get_duty_cycle_sp( ev3_motor_ptr motor )
Returns the brightness of an led.
int32_t ev3_get_led( enum ev3_led_name led, enum ev3_led_color color )
Returns the polarity of a motor
int32_t ev3_get_polarity( ev3_motor_ptr motor )
Returns the position of a motor
int32_t ev3_get_position( ev3_motor_ptr motor )
Returns the position set point of a motor
int32_t ev3_get_position_sp( ev3_motor_ptr motor )
Returns the ramp down set point of a motor
int32_t ev3_get_ramp_down_sp( ev3_motor_ptr motor )
Returns the ramp up set point of a motor
int32_t ev3_get_ramp_up_sp( ev3_motor_ptr motor )
Returns the speed of a motor
int32_t ev3_get_speed( ev3_motor_ptr motor )
Returns the speed set point of a motor
int32_t ev3_get_speed_sp( ev3_motor_ptr motor )
Returns the time set point of a motor
int32_t ev3_get_time_sp( ev3_motor_ptr motor )
Initializes the lcd.
void ev3_init_lcd()
Initializes the led functions.
void ev3_init_led()
Draws a line
void ev3_line_lcd( int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t bit )
ev3_motor_ptr ev3_load_motors( void )
ev3_sensor_ptr ev3_load_sensors( void )
Sets the mode of the sensor, e.g.
ev3_sensor_ptr ev3_mode_sensor( ev3_sensor_ptr sensor, int32_t mode )
Sets the mode of the sensor, e.g.
ev3_sensor_ptr ev3_mode_sensor_by_name( ev3_sensor_ptr sensor, char * mode )
Returns the state of the motor.
int32_t ev3_motor_state( ev3_motor_ptr motor )
Opens the motor to be used.
ev3_motor_ptr ev3_open_motor( ev3_motor_ptr motor )
Opens the sensor to be used.
ev3_sensor_ptr ev3_open_sensor( ev3_sensor_ptr sensor )
Finishes the work with the buttons.
void ev3_quit_button()
Finishes the work with the leds.
void ev3_quit_led()
Draws a filled rectangle
void ev3_rectangle_lcd( int32_t x, int32_t y, int32_t w, int32_t h, int32_t bit )
Draws a rectangle frame
void ev3_rectangle_lcd_out( int32_t x, int32_t y, int32_t w, int32_t h, int32_t bit )
Reset the motor to a default state.
ev3_motor_ptr ev3_reset_motor( ev3_motor_ptr motor )
Searches for a motor in the linked list identified with the identifier.
ev3_motor_ptr ev3_search_motor_by_identifier( ev3_motor_ptr motors, enum ev3_motor_identifier identifier, int32_t not_ready )
Searches for a motor in the linked list identified with the port.
ev3_motor_ptr ev3_search_motor_by_port( ev3_motor_ptr motors, char port )
Searches for a sensor in the linked list identified with the name.
ev3_sensor_ptr ev3_search_sensor_by_name( ev3_sensor_ptr sensors, char * name, int32_t not_ready )
Searches for a sensor in the linked list identified with the port.
ev3_sensor_ptr ev3_search_sensor_by_port( ev3_sensor_ptr sensors, int32_t port )
Set the duty cycle set point of a motor.
ev3_motor_ptr ev3_set_duty_cycle_sp( ev3_motor_ptr motor, int32_t value )
Sets the brightness of an led.
void ev3_set_led( enum ev3_led_name led, enum ev3_led_color color, int32_t value )
Set the polarity of a motor.
ev3_motor_ptr ev3_set_polarity( ev3_motor_ptr motor, int32_t value )
Set the position of a motor.
ev3_motor_ptr ev3_set_position( ev3_motor_ptr motor, int32_t value )
Set the position set point of a motor.
ev3_motor_ptr ev3_set_position_sp( ev3_motor_ptr motor, int32_t value )
Set the ramp down set point of a motor.
ev3_motor_ptr ev3_set_ramp_down_sp( ev3_motor_ptr motor, int32_t value )
Set the ramp up set point of a motor.
ev3_motor_ptr ev3_set_ramp_up_sp( ev3_motor_ptr motor, int32_t value )
Set the speed set point of a motor.
ev3_motor_ptr ev3_set_speed_sp( ev3_motor_ptr motor, int32_t value )
Set the time set point of a motor.
ev3_motor_ptr ev3_set_time_sp( ev3_motor_ptr motor, int32_t value )
Sets the stop_action of the motor, e.g.
ev3_motor_ptr ev3_stop_action_motor( ev3_motor_ptr motor, int32_t stop_action )
Sets the stop_action of the motor, e.g.
ev3_motor_ptr ev3_stop_action_motor_by_name( ev3_motor_ptr motor, char * stop_action )
Draws text in a large font (each letter 16x16)
void ev3_text_lcd_large( int32_t x, int32_t y, const char * text )
Draws text in a normal font (each letter 8x9)
void ev3_text_lcd_normal( int32_t x, int32_t y, const char * text )
Draws text in a small font (each letter 8x8)
void ev3_text_lcd_small( int32_t x, int32_t y, const char * text )
Draws text in a tiny font (each letter 5x7)
void ev3_text_lcd_tiny( int32_t x, int32_t y, const char * text )
Updates the raw values of the sensor.
void ev3_update_sensor_bin( ev3_sensor_ptr sensor )
Updates the formated values of the sensor.
void ev3_update_sensor_val( ev3_sensor_ptr sensor )
Returns the current of the battery.
uint32_t ev3c_current()
Returns the voltage of the battery.
uint32_t ev3c_voltage()