Enclosure files + firmware

This commit is contained in:
Salim Benbouziyane
2024-12-27 16:11:21 -05:00
parent a0ae88370c
commit 5fd10e2f6b
62 changed files with 3587 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
#pragma once
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "Animation.h"
class DisplayController
{
public:
DisplayController(uint8_t oledWidth, uint8_t oledHeight, uint8_t oledAddress = 0x3C);
void begin();
void drawSplashScreen();
void drawIdleScreen(int duration, bool wifi);
void drawTimerScreen(int remainingSeconds);
void drawPausedScreen(int remainingSeconds);
void drawResetScreen(bool resetSelected);
void drawDoneScreen();
void drawAdjustScreen(int duration);
void drawProvisionScreen();
void clear();
void showAnimation(const byte frames[][288], int frameCount, bool loop = false, bool reverse = false, unsigned long durationMs = 0, int width = 48, int height = 48);
void updateAnimation();
bool isAnimationRunning();
void showConfirmation();
void showCancel();
void showReset();
void showConnected();
void showTimerDone();
void showTimerStart();
void showTimerPause();
void showTimerResume();
private:
Adafruit_SSD1306 oled;
Animation animation;
};