|
SRA Board Components
ESP-IDF component for SRA Board
|

Functions | |
| led_matrix | led_matrix_init (void) |
| Enables and configures the LED Matrix and corresponding shift registers. More... | |
| led_matrix_data_t | bool_to_uint32 (const led_matrix_data_arr_t input_arr) |
| Converts a boolean array of size CONFIG_LED_MATRIX_ROWSxCONFIG_LED_MATRIX_COLUMNS to a 32-bit unsigned integer. More... | |
| esp_err_t | led_matrix_set_bit (led_matrix *matrix, const uint8_t logical_pin, const uint8_t led_value) |
| Sets a single bit of the "data" field of the passed in matrix. More... | |
| esp_err_t | led_matrix_set_data (led_matrix *matrix, const led_matrix_data_t data) |
| Sets all the bits of the "data" field of the passed in matrix using led_matrix_set_bit(). More... | |
| esp_err_t | led_matrix_set_data_raw (led_matrix *matrix, const led_matrix_data_t data) |
| Sets all the bits of the "data" field. More... | |
| esp_err_t | led_matrix_write (const led_matrix *matrix, const led_matrix_output_mode_t mode) |
| Performs the write from the led_matrix structure to the actual LEDs on board. More... | |
| esp_err_t | led_matrix_display_string (led_matrix *matrix, const char *message, double wait_ms) |
| Displays the entered string character by character on the LED Matrix with a delay of "wait_ms" ms between characters. More... | |
| esp_err_t | led_matrix_cleanup (led_matrix matrix) |
| Performs cleanup on the LED Matrix contents. More... | |
| led_matrix_data_t bool_to_uint32 | ( | const led_matrix_data_arr_t | input_arr | ) |
Converts a boolean array of size CONFIG_LED_MATRIX_ROWSxCONFIG_LED_MATRIX_COLUMNS to a 32-bit unsigned integer.
| input_arr | Boolean input array of dimensions (CONFIG_LED_MATRIX_ROWS, CONFIG_LED_MATRIX_COLUMNS) |
| esp_err_t led_matrix_cleanup | ( | led_matrix | matrix | ) |
Performs cleanup on the LED Matrix contents.
| matrix | The handle to represent and use the matrix of LEDs |
| esp_err_t led_matrix_display_string | ( | led_matrix * | matrix, |
| const char * | message, | ||
| double | wait_ms | ||
| ) |
Displays the entered string character by character on the LED Matrix with a delay of "wait_ms" ms between characters.
| matrix | The handle to represent and use the matrix of LEDs. |
| message | The message to be displayed on the screen. |
| wait_ms | The time to wait between two characters (in ms) |
| led_matrix led_matrix_init | ( | void | ) |
Enables and configures the LED Matrix and corresponding shift registers.
| matrix | The handle to represent and use the matrix of LEDs. |
| esp_err_t led_matrix_set_bit | ( | led_matrix * | matrix, |
| const uint8_t | led_number, | ||
| const uint8_t | led_value | ||
| ) |
Sets a single bit of the "data" field of the passed in matrix.
| matrix | The handle to represent and use the matrix of LEDs. |
| led_number | The logical index of the pin (varies from [0, led_matrix_rows * led_matrix_columns - 1]) |
| led_value | The value to set the LED (can be 0 - LOW or 1 - HIGH) |
| esp_err_t led_matrix_set_data | ( | led_matrix * | matrix, |
| const led_matrix_data_t | data | ||
| ) |
Sets all the bits of the "data" field of the passed in matrix using led_matrix_set_bit().
| matrix | The handle to represent and use the matrix of LEDs. |
| data | The data to write to the LED matrix. |
| esp_err_t led_matrix_set_data_raw | ( | led_matrix * | matrix, |
| const led_matrix_data_t | data | ||
| ) |
Sets all the bits of the "data" field.
| matrix | The handle to represent and use the matrix of LEDs. |
| data | The bitfield used to set the values of the LED matrix. |
| esp_err_t led_matrix_write | ( | const led_matrix * | matrix, |
| const led_matrix_output_mode_t | mode | ||
| ) |
Performs the write from the led_matrix structure to the actual LEDs on board.
| matrix | The handle to represent and use the matrix of LEDs. |
| mode | The way in which to display the values from the shift register. |