How kyhhe/timer works
The ESP32 Timer Cube is a physical Pomodoro timer and desk clock: flipping the cube selects, pauses, or cancels a countdown, while its display shows time, weather, and timer status. Firmware startup connects Wi-Fi and synchronizes time; FreeRTOS tasks then poll orientation, coordinate timer state and display updates, and refresh weather independently. The README also documents custom PCB and enclosure hardware. Relationships below are limited to the supplied source excerpts and README; omitted main.cpp sections prevent confirming some task data transfers.
Main entry points: main.cpp Task orchestration · ClockManager.cpp Clock and timer · IMUSensor.cpp Orientation sensing · Display.cpp Screen rendering
Components 12
Cube Interaction
- Orientation sensing
src/IMUSensor.cpp - Screen rendering
src/Display.cpp
Firmware Runtime
- Task orchestration
src/main.cpp - Display task
src/main.cpp - Weather refresh task
src/main.cpp
Time and Weather
- Clock and timer
src/ClockManager.cpp - Weather data and icons
src/WeatherData.h
Physical Device
- Pin configuration
include/HardwareConfig.h - Custom PCB
hardware/pcb - Printed enclosure
hardware/enclosure
Other components
- Cube user
- OpenWeatherMap
Connections 16
- Cube user → Orientation sensing: flips cube
README.md - Task orchestration → Orientation sensing: polls orientation
src/main.cpp - Orientation sensing → Task orchestration: reports face
src/main.cpp - Task orchestration → Clock and timer: controls countdown
src/main.cpp - Clock and timer → Task orchestration: notifies completion
src/ClockManager.cpp - Task orchestration → Display task: creates task
src/main.cpp - Display task → Screen rendering: renders UI
src/main.cpp - Weather refresh task → Clock and timer: requests weather
src/main.cpp - Clock and timer → OpenWeatherMap: fetches conditions
src/ClockManager.cpp - Clock and timer → Weather data and icons: returns weather
src/ClockManager.cpp - Screen rendering → Weather data and icons: maps icons
src/Display.cpp - Task orchestration → Clock and timer: syncs time
README.md - Cube user → Screen rendering: views status
README.md - Custom PCB → Orientation sensing: mounts sensor
README.md - Custom PCB → Screen rendering: mounts screen
README.md - Printed enclosure → Custom PCB: houses electronics
README.md