How jyh9521/epd-nrf5-jp works
EPD-nRF5-JP is firmware and a browser controller for a Japanese electronic-paper calendar. The main firmware workflow advances device time, handles BLE commands, prepares calendar/display data, renders a frame, and refreshes the panel; the Web Bluetooth UI connects to the device to sync time, change display mode, transfer images, and manage week-start settings. The README documents those capabilities, while the sampled source confirms the timer-to-service and service-to-renderer links. Web UI internals and several firmware subsystems were not sampled, so their internal edges are omitted.
Main entry points: GUI.c Display composition · EPD_driver.c EPD driver layer · EPD_service.c EPD BLE service · main.js Web Bluetooth UI
Components 17
Firmware runtime
- Clock and app
main.c
BLE control
- EPD BLE service
EPD/EPD_service.c - Device settings
EPD/EPD_config.c
Calendar rendering
- Display composition
GUI/GUI.c - Japanese holidays
GUI/JapaneseCalendar.c - Rokuyo calendar
GUI/JapaneseRokuyo.c - Lunar dates
GUI/Lunar.c - Graphics primitives
GUI/Adafruit_GFX.c - Font data
GUI/fonts.c - U8g2 font rendering
GUI/u8g2_font.c
Panel output
- EPD driver layer
EPD/EPD_driver.c - Panel controllers
EPD/SSD16xx.c - UC81xx controller
EPD/UC81xx.c
Browser controller
- Web Bluetooth UI
html/js/main.js
Other components
- Browser user
- EPD panel
- Calendar device
Connections 16
- Clock and app → EPD BLE service: ticks display
main.c - EPD BLE service → Display composition: renders frame
EPD/EPD_service.c - Display composition → EPD driver layer: writes image
- EPD driver layer → EPD panel: refreshes panel
- EPD driver layer → Panel controllers: dispatches driver
- EPD driver layer → UC81xx controller: dispatches driver
- Browser user → Web Bluetooth UI: operates
README.md - Web Bluetooth UI → Calendar device: connects BLE
README.md - Web Bluetooth UI → EPD BLE service: sends commands
README.md - EPD BLE service → Device settings: stores settings
README.md - Display composition → Japanese holidays: uses dates
- Display composition → Rokuyo calendar: uses rokuyo
- Display composition → Lunar dates: uses lunar dates
- Display composition → Graphics primitives: draws primitives
- Display composition → Font data: uses glyphs
- Display composition → U8g2 font rendering: renders text