ST7735 driven TFT color display device.
More...
#include <st7735.h>
|
| ST7735 (HW_SPI_Master *spi, struct_ConfigST7735 device_config) |
| Construct a new ST7735 object.
|
|
void | set_rotation_and_color (struct_ConfigST7735 device_config) |
| set the actual position of the display
|
|
void | set_display_ON () |
| Set the display ON object.
|
|
void | set_display_OFF () |
| Set the display OFF object.
|
|
void | enable_sleep (bool enable) |
| turn the display in sleep mode on/off
|
|
void | check_display_device_compatibility (struct_ConfigGraphicWidget framebuffer_cfg) |
| A pure virtual member function. Each device must implement this method and check the compatibility of the widget parameter with the its physical limitations.
|
|
void | clear_device_screen_buffer (ColorIndex color_index=ColorIndex::BLACK) |
| fill the internal ST7735 screen buffer with the given color. Default to BLACK, clear the internal buffer
|
|
void | show (Canvas *canvas, const uint8_t anchor_x, const uint8_t anchor_y) |
| A pure virtual member function. It transfers the pixel buffer to the a part of display screen buffer starting at the (anchor_x, anchor_y) coordinates of the screen , expressed in pixel. This method takes into account the specific addressing scheme and memory structure of the actual display device.
|
|
| GraphicDisplayDevice (size_t screen_width, size_t screen_height) |
| Construct a new Display Device object.
|
|
virtual | ~GraphicDisplayDevice () |
| Destroy the Display Device object.
|
|
|
size_t | TFT_panel_width_in_pixel |
| the physical width of the screen (in pixel)
|
|
size_t | TFT_panel_height_in_pixel |
| the physical height of the screen (in pixel)
|
|
ST7735 driven TFT color display device.
◆ ST7735()
Construct a new ST7735 object.
- Parameters
-
spi | the SPI associated driver |
device_config | the device configuration file |
◆ check_display_device_compatibility()
A pure virtual member function. Each device must implement this method and check the compatibility of the widget parameter with the its physical limitations.
- Parameters
-
framebuffer_cfg | the widget configuration data |
Implements GraphicDisplayDevice.
◆ clear_device_screen_buffer()
void ST7735::clear_device_screen_buffer |
( |
ColorIndex | color_index = ColorIndex::BLACK | ) |
|
fill the internal ST7735 screen buffer with the given color. Default to BLACK, clear the internal buffer
- Parameters
-
◆ enable_sleep()
void ST7735::enable_sleep |
( |
bool | enable | ) |
|
turn the display in sleep mode on/off
- Parameters
-
◆ set_rotation_and_color()
set the actual position of the display
set rotation and color
- Parameters
-
device_config | the device configuration file |
◆ show()
void ST7735::show |
( |
Canvas * | canvas, |
|
|
const uint8_t | anchor_x, |
|
|
const uint8_t | anchor_y ) |
|
virtual |
A pure virtual member function. It transfers the pixel buffer to the a part of display screen buffer starting at the (anchor_x, anchor_y) coordinates of the screen , expressed in pixel. This method takes into account the specific addressing scheme and memory structure of the actual display device.
- Parameters
-
canvas | a pointer to the canvas that contains the buffer to be displayed |
anchor_x | the x(horizontal) starting position of the frame within the display screen,(in pixel) |
anchor_y | the y(vertical) starting position of the frame within the display screen,(in pixel) |
Implements GraphicDisplayDevice.
The documentation for this class was generated from the following files: