12 OledDDDebugInterface(Adafruit_SSD1306& display,
int x = 0,
int y = 0,
bool indicateSendCommand =
false): display(display) {
15 this->indicateSendCommand = indicateSendCommand;
19 if (indicateSendCommand) {
20 display.fillRect(x, y, x + 8, y + 8, WHITE);
22 display.fillCircle(x + 4, y + 4, 4, BLACK);
28 virtual void drawText(
const char* text,
bool isError) {
44 void showMsg(
const char* msg,
int xOff) {
45 const int charWidth = 6;
46 for (
int i = 0;; i++) {
51 display.drawChar(x + xOff + charWidth * i, y, c, WHITE, BLACK, 1);
56 Adafruit_SSD1306& display;
59 bool indicateSendCommand;
Definition: ddoledutil.h:10
virtual void logSendCommand(int state)
Definition: ddoledutil.h:18