Need to add other features that involve flashing the error code lights, so made it possible to do this with different colors and without interfering with running programs
Still getting ~64 reads per update cycle, but sampling a little slower. After doing some testing it may - or may not - result in more stability of readings.
Doubled the count of averaged readings.
D1 has changed to a 5V1 zener and is loading the circuit a little bit. Adjusted voltage based on tested value on prototype. This value may differ on production units so expect this to possibly change.
Reads continuity at a fixed ~100ohm or lower, and diodes with intelligent detection of LEDs vs normal diodes. Some values may need to be changed still.
For some reason, SVD files specified in the board.json are relative to the vscode path, but the ones specified in platform.io are relative to the project path. Specify the SVD in platformio.ini to use it.
These SVD files do not work correctly with platformio. xperipherals pane will load them but does not work with the debugger. peripheral pane needs a fixed up version
ADC now works in interrupt mode. No idea why DMA was unreliable.
Initial button push / release detection and mode switch detection working. No callbacks implemented yet.
ADC is sort of functioning, but not reliably. LEDs are sort of working. Buzzer isn't working right and is nearly always on as I can't set the PF2 mode.
Builds, but is not yet usable in any way nor is anything tested.
This includes ADC reading, basic RGBLED control, and init code. Still need to do probe, user IO including mode select and settings, RGBLED programs, and more.