1-phase PV router
Loading...
Searching...
No Matches
u8x8_fake Class Reference

This is a fake class in case there's no OLED display. More...

#include <utils_oled.h>

Public Member Functions

 u8x8_fake (uint8_t)
 
bool begin ()
 
void clearDisplay ()
 
void drawGlyph (uint8_t, uint8_t, uint8_t)
 
void drawString (uint8_t, uint8_t, const char *)
 
void drawTile (uint8_t, uint8_t, uint8_t, uint8_t *)
 
uint8_t getCols ()
 
uint8_t getRows ()
 
void noInverse ()
 
void setFont (const uint8_t *)
 

Detailed Description

This is a fake class in case there's no OLED display.

When declaring a variable with the real OLED class, even it's not used, it is loaded and partially initialized. This leads to "break" the ADC measurement on old boards and consumes memory on any board. This is to avoid the use of "#ifdef" in the code to activate/deactivate portions of code.

Definition at line 39 of file utils_oled.h.

Constructor & Destructor Documentation

◆ u8x8_fake()

u8x8_fake::u8x8_fake ( uint8_t )
inline

Definition at line 42 of file utils_oled.h.

Member Function Documentation

◆ begin()

bool u8x8_fake::begin ( )
inline

Definition at line 44 of file utils_oled.h.

◆ clearDisplay()

void u8x8_fake::clearDisplay ( )
inline

Definition at line 48 of file utils_oled.h.

◆ drawGlyph()

void u8x8_fake::drawGlyph ( uint8_t ,
uint8_t ,
uint8_t  )
inline

Definition at line 61 of file utils_oled.h.

◆ drawString()

void u8x8_fake::drawString ( uint8_t ,
uint8_t ,
const char *  )
inline

Definition at line 60 of file utils_oled.h.

◆ drawTile()

void u8x8_fake::drawTile ( uint8_t ,
uint8_t ,
uint8_t ,
uint8_t *  )
inline

Definition at line 63 of file utils_oled.h.

◆ getCols()

uint8_t u8x8_fake::getCols ( )
inline

Definition at line 50 of file utils_oled.h.

◆ getRows()

uint8_t u8x8_fake::getRows ( )
inline

Definition at line 54 of file utils_oled.h.

◆ noInverse()

void u8x8_fake::noInverse ( )
inline

Definition at line 49 of file utils_oled.h.

◆ setFont()

void u8x8_fake::setFont ( const uint8_t * )
inline

Definition at line 59 of file utils_oled.h.


The documentation for this class was generated from the following file: