da0529dd994262bf5b878c00cf70bf8aef6b6352
There's two issues with this. 1. There's no way to force a USB reset. 2. This USB stack is cursed. I can't tell how much of the latter is my fault, though, so I'm keeping it in.
To use:
- Download a toolchain (e.g. https://www.mounriver.com/download)
make PREFIX=..../bin/riscv-wch-elf-
If never flashed before:
- See https://github.com/fossasia/badgemagic-firmware#installation for exact instructions.
Once loaded, holding down both buttons for a few seconds (or holding down the lower button whilst waking up the device) should work.
Shows up as LSLED Badge Witch on bluetooth. Both HID and CDC-ACM protocol are supported over USB, just as the badge magic firmware supports.
Code licensed under the EUPL.
Description
Languages
C
99%
Assembly
0.7%
Makefile
0.3%