controller_print

Function controller_print 

Source
pub unsafe extern "C" fn controller_print(
    id: controller_id_e_t,
    line: u8,
    col: u8,
    fmt: *const c_char,
    ...
) -> i32
Expand description

Sets text to the controller LCD screen.

\note Controller text setting is currently in beta, so continuous, fast updates will not work well.

This function uses the following values of errno when an error state is reached: EINVAL - A value other than E_CONTROLLER_MASTER or E_CONTROLLER_PARTNER is given. EACCES - Another resource is currently trying to access the controller port.

\param id The ID of the controller (e.g. the master or partner controller). Must be one of CONTROLLER_MASTER or CONTROLLER_PARTNER \param line The line number at which the text will be displayed [0-2] \param col The column number at which the text will be displayed [0-14] \param fmt The format string to print to the controller \param … The argument list for the format string

\return 1 if the operation was successful or PROS_ERR if the operation failed, setting errno.