API Reference¶
-
group
group_board_libs
APIs for controlling the TFT display on the board.
Functions
-
cy_rslt_t
mtb_st7789v_init8
(const mtb_st7789v_pins_t *pins)¶ Initializes GPIOs for the software i8080 8-bit interface.
- Parameters
pins – [in] Structure providing the pins to use for the display
- Returns
CY_RSLT_SUCCESS if successfully initialized, else an error about what went wrong
-
void
mtb_st7789v_write_reset_pin
(bool value)¶ Sets value of the display Reset pin.
- Parameters
value – [in] The value to set on the pin
-
void
mtb_st7789v_write_command
(uint8_t command)¶ Writes one byte of data to the software i8080 interface with the LCD_DC pin set to 0.
Followed by a low pulse on the NWR line to complete the write.
- Parameters
command – [in] The command to issue to the display
-
void
mtb_st7789v_write_data
(uint8_t data)¶ Writes one byte of data to the software i8080 interface with the LCD_DC pin set to 1.
Followed by a low pulse on the NWR line to complete the write.
- Parameters
data – [in] The value to issue to the display
-
void
mtb_st7789v_write_command_stream
(uint8_t *data, int num)¶ Writes multiple command bytes to the software i8080 interface with the LCD_DC pin set to 0.
- Parameters
data – [in] Pointer to the commands to send to the display
num – [in] The number of commands in the data array to send to the display
-
void
mtb_st7789v_write_data_stream
(uint8_t *data, int num)¶ Writes multiple bytes of data to the software i8080 interface with the LCD_DC pin set to 1.
- Parameters
data – [in] Pointer to the data to send to the display
num – [in] The number of bytes in the data array to send to the display
-
uint8_t
mtb_st7789v_read_data
(void)¶ Reads one byte of data from the software i8080 interface with the LCD_DC pin set to 1.
- Returns
The byte read from the display
-
void
mtb_st7789v_read_data_stream
(uint8_t *data, int num)¶ Reads multiple bytes of data from the software i8080 interface with the LCD_DC pin set to 1.
- Parameters
data – [inout] Pointer to where to store the bytes read from the display
num – [in] The number of bytes to read from the display
-
void
mtb_st7789v_free
(void)¶ Free all resources used for the software i8080 interface.
-
struct
mtb_st7789v_pins_t
¶ - #include <>
Configuration structure defining the pins used to communicate with the TFT display.
-
cy_rslt_t