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

35
firmware/include/Config.h Normal file
View File

@@ -0,0 +1,35 @@
#pragma once
#include <Arduino.h>
// --- Hardware ---
#define OLED_WIDTH 128
#define OLED_HEIGHT 64
#define OLED_ADDR 0x3C
#define LED_PIN 15
#define NUM_LEDS 16
#define LED_BRIGHTNESS 100
#define ENCODER_A_PIN 27
#define ENCODER_B_PIN 25
#define BUTTON_PIN 26
// --- LED Colors ---
#define BLUE 0x0000FF
#define AMBER 0xFFBF00
#define RED 0xFF0000
#define GREEN 0x00FF00
#define YELLOW 0xFFFF00
#define MAGENTA 0xFF00FF
#define TEAL 0x008080
// --- Defaults ---
#define DEFAULT_TIMER 25 // min - Default to 25 minutes if no value in NVS
#define MIN_TIMER 5 // min - Minimum timer
#define MAX_TIMER 240 // min - Maximum timer (4 hours)
#define SPLASH_DURATION 2 // sec - 2 seconds splash state
#define CHANGE_TIMEOUT 5 // sec - 5 seconds adjust timeout
#define SLEEP_TIMOUT 5 // min - 5 minutes to transition to sleep
#define PAUSE_TIMEOUT 10 // min - 10 minutes to cancel the timer if stayed paused