1-phase PV router
|
Functions for managing the OLED display. More...
Classes | |
class | u8x8_fake |
This is a fake class in case there's no OLED display. More... | |
Functions | |
void | clearDisplay () |
Clear the display. | |
uint8_t * | get_tile_from_xbm (uint8_t tx, uint8_t ty, uint8_t xbm_byte_width, const unsigned char *xbm) |
Get the tile from xbm object. | |
void | setupOLED () |
Setup the OLED display. | |
void | u8x8_draw_xbm (uint8_t _tx, uint8_t _ty, uint8_t xbm_width, uint8_t xbm_height, const unsigned char *xbm) |
Draw the xbm on the OLED display. | |
void | updateOLED (uint16_t value) |
Update the OLED display with the given value. | |
void | updateWatchdog () |
Update the watchdog on the display. | |
Functions for managing the OLED display.
This group handles the initialization and updates of the OLED display. It is used to show real-time system data such as power, temperature, and system status.
void clearDisplay | ( | ) |
Clear the display.
Definition at line 211 of file utils_oled.h.
References u8x8().
Referenced by loop().
uint8_t * get_tile_from_xbm | ( | uint8_t | tx, |
uint8_t | ty, | ||
uint8_t | xbm_byte_width, | ||
const unsigned char * | xbm ) |
Get the tile from xbm object.
tx | Relative x position of the tile |
ty | Relative y position of the tile |
xbm_byte_width | Width of the xbm object |
xbm | The xbm object |
Definition at line 137 of file utils_oled.h.
References i.
Referenced by u8x8_draw_xbm().
void setupOLED | ( | ) |
Setup the OLED display.
Definition at line 188 of file utils_oled.h.
References LOGO_HEIGHT, LOGO_WIDTH, OLED, TYPE_OF_DISPLAY, u8x8(), and u8x8_draw_xbm().
Referenced by setup().
void u8x8_draw_xbm | ( | uint8_t | _tx, |
uint8_t | _ty, | ||
uint8_t | xbm_width, | ||
uint8_t | xbm_height, | ||
const unsigned char * | xbm ) |
Draw the xbm on the OLED display.
_tx | x position for drawing the xbm |
_ty | y position for drawing the xbm |
xbm_width | Width of the xbm |
xbm_height | Height of the xbm |
xbm | The xbm object |
Definition at line 171 of file utils_oled.h.
References get_tile_from_xbm(), and u8x8().
Referenced by setupOLED().
void updateOLED | ( | uint16_t | value | ) |
Update the OLED display with the given value.
value | The value to display |
Definition at line 249 of file utils_oled.h.
References OLED, TYPE_OF_DISPLAY, and u8x8().
Referenced by loop().
void updateWatchdog | ( | ) |
Update the watchdog on the display.
Definition at line 221 of file utils_oled.h.
References OLED, TYPE_OF_DISPLAY, and u8x8().
Referenced by handlePerSecondTasks().