How eartkey/lf_alpha works
LF_Alpha is an ESP32-S3 Arduino firmware library that presents a unified API for board sensors, controls, and communications. The principal workflow is application code calling that API to initialize peripherals, collect or process measurements, and control outputs. The tree includes a large central implementation and header, plus bundled display, sensor-processing, and PWM libraries. Several README-listed peripherals have no separate files in the supplied tree, so they are represented as capabilities of the central implementation; their internal call paths are not asserted.
Main entry points: LF_Alpha.h LF_Alpha API · LF_Alpha.cpp Sensor Interfaces · Adafruit_SSD1306.cpp SSD1306 Driver · MPU6050.cpp MPU6050 Driver
Components 18
Firmware API
- LF_Alpha API
src/LF_Alpha.h - Peripheral Implementations
src/LF_Alpha.cpp
Sensors
- Sensor Interfaces
src/LF_Alpha.cpp - MPU6050 Interface
src/LF_Alpha.cpp - MAX30102 Interface
src/LF_Alpha.cpp - Other Sensors
src/LF_Alpha.cpp
Display
- OLED Interface
src/LF_Alpha.cpp - Graphics Rendering
src/lib/Adafruit_SSD1306/Adafruit_GFX.cpp - SSD1306 Driver
src/lib/Adafruit_SSD1306/Adafruit_SSD1306.cpp
Controls
- Board Controls
src/LF_Alpha.cpp - Servo PWM
src/lib/ESP32PWM/ESP32PWM.cpp
Communications
- WiFi and HTTP
src/LF_Alpha.cpp - I2C Scanner
src/LF_Alpha.cpp
Bundled Libraries
- Pulse Oximetry Algorithm
src/lib/MAX30102/algorithm.cpp - Heart Rate Processing
src/lib/MAX30102/heartRate.cpp - MPU6050 Driver
src/lib/MPU6050/MPU6050.cpp - I2C Device Access
src/lib/MPU6050/I2Cdev.cpp
Other components
- Arduino Application
Connections 17
- Arduino Application → LF_Alpha API: calls
- LF_Alpha API → Peripheral Implementations: implements
src/LF_Alpha.h - LF_Alpha API → Sensor Interfaces: exposes
- LF_Alpha API → Board Controls: exposes
- LF_Alpha API → WiFi and HTTP: exposes
- LF_Alpha API → I2C Scanner: exposes
- Sensor Interfaces → MPU6050 Interface: includes
src/LF_Alpha.cpp - Sensor Interfaces → MAX30102 Interface: includes
src/LF_Alpha.cpp - Sensor Interfaces → Other Sensors: includes
src/LF_Alpha.cpp - LF_Alpha API → OLED Interface: exposes
- OLED Interface → SSD1306 Driver: uses
- SSD1306 Driver → Graphics Rendering: inherits graphics
- MAX30102 Interface → Pulse Oximetry Algorithm: declares dependency
- MAX30102 Interface → Heart Rate Processing: declares dependency
- MPU6050 Interface → MPU6050 Driver: declares dependency
- MPU6050 Driver → I2C Device Access: uses
- Board Controls → Servo PWM: uses