1-phase PV router
Loading...
Searching...
No Matches
OLED Display Feature

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.
 

Detailed Description

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.

Features:

Note
The OLED display uses the U8g2 library for rendering.

Function Documentation

◆ clearDisplay()

void clearDisplay ( )

Clear the display.

Definition at line 211 of file utils_oled.h.

References u8x8().

Referenced by loop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_tile_from_xbm()

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.

Parameters
txRelative x position of the tile
tyRelative y position of the tile
xbm_byte_widthWidth of the xbm object
xbmThe xbm object
Returns
uint8_t*

Definition at line 137 of file utils_oled.h.

References i.

Referenced by u8x8_draw_xbm().

Here is the caller graph for this function:

◆ setupOLED()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ u8x8_draw_xbm()

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.

Parameters
_txx position for drawing the xbm
_tyy position for drawing the xbm
xbm_widthWidth of the xbm
xbm_heightHeight of the xbm
xbmThe xbm object

Definition at line 171 of file utils_oled.h.

References get_tile_from_xbm(), and u8x8().

Referenced by setupOLED().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateOLED()

void updateOLED ( uint16_t value)

Update the OLED display with the given value.

Parameters
valueThe value to display

Definition at line 249 of file utils_oled.h.

References OLED, TYPE_OF_DISPLAY, and u8x8().

Referenced by loop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateWatchdog()

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().

Here is the call graph for this function:
Here is the caller graph for this function: