10#include <esp_lcd_panel_ssd1306.h>
17 static constexpr const char* TAG =
"Device::Display";
19 static constexpr uint8_t I2C_ADDRESS = 0x3C;
20 static constexpr uint8_t WIDTH = 128;
21 static constexpr uint8_t HEIGHT = 64;
22 static constexpr uint8_t CHAR_WIDTH = 8;
23 static constexpr uint8_t CHAR_HEIGHT = 8;
25 static constexpr uint8_t font8x8[128][8] = {
26 #include "display_font.inc"
31 uint8_t* display_buffer;
35 esp_lcd_panel_handle_t panel_handle;
36 esp_lcd_panel_io_handle_t io_handle;
void clear()
Clears the display.
Definition display.cpp:78
~Display()
Definition display.cpp:28
void write_text(const char *text)
Writes text to the display at the current cursor position.
Definition display.cpp:91
Display(Robot &robot)
Definition display.cpp:17
void shutdown()
Shuts down the LCD panel and the according I2C device.
Definition display.cpp:61
void set_cursor_position(uint8_t x, uint8_t y)
Sets the position of the cursor on the screen.
Definition display.cpp:130
void initialize()
Configures the LCD panel and all I2C components related to the display.
Definition display.cpp:33
Class containing all the components of the robot.
Definition robot.h:24
Definition battery.cpp:14