Class Ssd1306
Defined in File ssd1306.hpp
Class Documentation
-
class Ssd1306
Public Functions
-
void Init(void)
-
void Fill(SSD1306_COLOR color)
-
void UpdateScreen(void)
-
void DrawPixel(uint8_t x, uint8_t y, SSD1306_COLOR color)
-
char WriteChar(char ch, FontDef Font, SSD1306_COLOR color)
-
bool WriteString(std::string str, FontDef Font, SSD1306_COLOR color)
-
void DrawBattery(uint8_t x1, uint8_t y1, SSD1306_COLOR color)
-
void DrawArc(uint8_t x, uint8_t y, uint8_t radius, uint16_t start_angle, uint16_t sweep, SSD1306_COLOR color)
-
void DrawCircle(uint8_t par_x, uint8_t par_y, uint8_t par_r, SSD1306_COLOR color)
-
void Polyline(const SSD1306_VERTEX *par_vertex, uint16_t par_size, SSD1306_COLOR color)
-
void SetContrast(const uint8_t value)
Sets the contrast of the display.
Note
Contrast increases as the value increases.
Note
RESET = 7Fh.
- Parameters:
value – [in] contrast to set.
-
void SetDisplayOn(const uint8_t on)
Set Display ON/OFF.
- Parameters:
on – [in] 0 for OFF, any for ON.
-
void Reset(void)
-
SSD1306_Error_t FillBuffer(uint8_t *buf, uint32_t len)
-
float DegToRad(float par_deg)
-
void Init(void)