RBCX
Library for the RB3204-RBCX board with the ESP32 by RoboticsBrno.
|
Helper class for controlling the Oled. More...
#include <RBCXOled.h>
Public Types | |
enum | OledType { Oled_128x32 , Oled_128x64 } |
enum | OledColor { Black = 0 , White = 1 } |
enum | OledFontDef { Font_6x8 , Font_7x10 , Font_11x18 , Font_16x26 } |
typedef enum rb::Oled::OledColor | OledColor |
Public Member Functions | |
void | init (OledType type, bool rotate=true, bool inverseColor=false) |
void | fill (OledColor color=White) |
void | updateScreen (void) |
void | drawPixel (uint8_t x, uint8_t y, OledColor color=White) |
void | writeString (const char *str, OledFontDef Font, OledColor color=White) |
void | writeString (const std::string &str, OledFontDef Font, OledColor color=White) |
void | setCursor (uint8_t x, uint8_t y) |
void | drawLine (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, OledColor color) |
void | drawArc (uint8_t x, uint8_t y, uint8_t radius, uint16_t start_angle, uint16_t sweep, OledColor color) |
void | drawCircle (uint8_t x, uint8_t y, uint8_t radius, OledColor color) |
void | drawRectangle (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, OledColor color) |
uint8_t | getWidth () |
uint8_t | getHeight () |
Friends | |
class | Manager |
Helper class for controlling the Oled.
typedef enum rb::Oled::OledColor rb::Oled::OledColor |
enum rb::Oled::OledColor |
enum rb::Oled::OledType |
void rb::Oled::drawArc | ( | uint8_t | x, |
uint8_t | y, | ||
uint8_t | radius, | ||
uint16_t | start_angle, | ||
uint16_t | sweep, | ||
OledColor | color | ||
) |
void rb::Oled::drawCircle | ( | uint8_t | x, |
uint8_t | y, | ||
uint8_t | radius, | ||
OledColor | color | ||
) |
void rb::Oled::drawLine | ( | uint8_t | x1, |
uint8_t | y1, | ||
uint8_t | x2, | ||
uint8_t | y2, | ||
OledColor | color | ||
) |
void rb::Oled::drawRectangle | ( | uint8_t | x1, |
uint8_t | y1, | ||
uint8_t | x2, | ||
uint8_t | y2, | ||
OledColor | color | ||
) |
|
inline |
|
inline |
void rb::Oled::init | ( | OledType | type, |
bool | rotate = true , |
||
bool | inverseColor = false |
||
) |
void rb::Oled::setCursor | ( | uint8_t | x, |
uint8_t | y | ||
) |
void rb::Oled::updateScreen | ( | void | ) |
void rb::Oled::writeString | ( | const char * | str, |
OledFontDef | Font, | ||
OledColor | color = White |
||
) |
|
inline |
|
friend |