mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
31 lines
730 B
C
31 lines
730 B
C
#ifndef NANOBAKE_NB_DISPLAY_H
|
|
#define NANOBAKE_NB_DISPLAY_H
|
|
|
|
#include <esp_lcd_panel_io.h>
|
|
|
|
typedef struct nb_display nb_display_t;
|
|
|
|
struct nb_display {
|
|
uint16_t horizontal_resolution;
|
|
uint16_t vertical_resolution;
|
|
uint16_t draw_buffer_height;
|
|
uint16_t bits_per_pixel;
|
|
esp_lcd_panel_io_handle_t _Nonnull io_handle;
|
|
esp_lcd_panel_handle_t _Nonnull display_handle;
|
|
};
|
|
|
|
typedef struct nb_display_driver nb_display_driver_t;
|
|
|
|
struct nb_display_driver {
|
|
char name[32];
|
|
esp_err_t (*create_display)(nb_display_t* display);
|
|
};
|
|
|
|
/**
|
|
* @param[in] driver
|
|
* @return allocated display object
|
|
*/
|
|
nb_display_t _Nonnull* nb_display_create(nb_display_driver_t _Nonnull* driver);
|
|
|
|
#endif // NANOBAKE_NB_DISPLAY_H
|