fossasia / badgemagic-firmware

Hardware details and information to build an open firmware for LED badge
https://badgemagic.fossasia.org
Apache License 2.0
1.5k stars 4 forks source link

Turn screen on and off over BLE #32

Open FedericoCeratto opened 1 week ago

FedericoCeratto commented 1 week ago

Hello and thanks for developing the firmware. I would love to be able to turn the screen on and off remotely over BLE on the RISC-V variant. Ideally the off state should be really low power.

kienvo commented 1 week ago

Hi @FedericoCeratto, thank you for the interesting idea.

Currently, the BLE is only turned on in the download mode. To have this feature implemented, I think we should change a bit how BLE works:

For low power sleep while BLE is turned on, I haven't figured out how it works on this chip. The datasheet is missing the BLE sections. The internal clock source for BLE seems noisy. All my works on BLE are guessed based on BLE conventions =]