pub unsafe extern "C" fn controller_clear(
id: controller_id_e_t,
) -> i32
Expand description
Clears all of the lines on the controller screen.
\note Controller text setting is a slow process, so updates faster than 10ms when on a wired connection or 50ms over Vexnet will not be applied to the controller.
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. EAGAIN - Could not send the text to the controller.
\param id The ID of the controller (e.g. the master or partner controller). Must be one of CONTROLLER_MASTER or CONTROLLER_PARTNER
\return 1 if the operation was successful or PROS_ERR if the operation failed, setting errno.
\b Example \code void opcontrol() { controller_set_text(E_CONTROLLER_MASTER, 0, 0, “Example”); delay(100); controller_clear(E_CONTROLLER_MASTER); } \endcode