Reworks the graphics during the startup. Introduces a progress bar to visualize how much of the boot is completed. Also changes the the optics of the bambu, spoolman and wifi icons. They are now always displayed but they will be striked out if not working and they will start blinking. Also removes some unnessesary waits.
27 lines
624 B
C
27 lines
624 B
C
#ifndef DISPLAY_H
|
|
#define DISPLAY_H
|
|
|
|
#include <Arduino.h>
|
|
#include <Adafruit_GFX.h>
|
|
#include <Adafruit_SSD1306.h>
|
|
#include "config.h"
|
|
|
|
|
|
extern Adafruit_SSD1306 display;
|
|
extern bool wifiOn;
|
|
|
|
void setupDisplay();
|
|
void oledclearline();
|
|
void oledcleardata();
|
|
int oled_center_h(const String &text);
|
|
int oled_center_v(const String &text);
|
|
|
|
void oledShowProgressBar(const uint8_t step, const uint8_t numSteps, const char* largeText, const char* statusMessage);
|
|
|
|
void oledShowWeight(uint16_t weight);
|
|
void oledShowMessage(const String &message, uint8_t size = 2);
|
|
void oledShowTopRow();
|
|
void oledShowIcon(const char* icon);
|
|
|
|
#endif
|