How zhumagaa/studybuddy works
This is an ESP-IDF/FreeRTOS study timer that guides a user through task sessions, timed work, completion checks, and motivational feedback. The main workflow combines keypad time entry, a switch-controlled countdown, and a study manager that tracks task progress and hearts. Separate tasks drive the seven-segment display and buzzer, while the LCD presents session prompts and results. All implementation is in main/main.c; because the source excerpt is partial, the graph includes only relationships visible there.
Main entry points: main.c Task startup
Components 12
Session workflow
- Task startup
main/main.c - Study manager
main/main.c - Session state
main/main.c
Timer and input
- Keypad input
main/main.c - Timer state
main/main.c - Countdown task
main/main.c
Device feedback
- Seven-segment display
main/main.c - LCD feedback
main/main.c - Button buzzer
main/main.c
Other components
- User
- Start switch
- Button
Connections 15
- User → Keypad input: enters time
main/main.c - User → Study manager: answers prompt
main/main.c - Task startup → Keypad input: starts task
main/main.c - Task startup → Countdown task: starts task
main/main.c - Task startup → Seven-segment display: starts task
main/main.c - Task startup → Button buzzer: starts task
main/main.c - Task startup → Study manager: starts task
main/main.c - Keypad input → Timer state: sets time
main/main.c - Study manager → Timer state: checks time
main/main.c - Study manager → Session state: tracks progress
main/main.c - Start switch → Countdown task: enables timer
main/main.c - Countdown task → Timer state: updates time
main/main.c - Seven-segment display → Timer state: reads time
main/main.c - Study manager → LCD feedback: shows prompts
main/main.c - Button → Button buzzer: triggers sound
main/main.c