Closed securelyfitz closed 1 year ago
There's no need to make the badge USB host rewriteable when in battery power and no USB connection.
Automatically going into USB host rw mode when on USB power makes programming easier.
However, there is reason to make it USB host read-only when on USB connection for debug purposes.
So, only go into USB host rw mode if USB power is good (high, 1, false) AND center button is NOT pressed (high, 1, false)
consolidated into #12
GPIO26_ADC0/USB_DET in the schematic is A0 on xiao schematic
There's no need to make the badge USB host rewriteable when in battery power and no USB connection.
Automatically going into USB host rw mode when on USB power makes programming easier.
However, there is reason to make it USB host read-only when on USB connection for debug purposes.
So, only go into USB host rw mode if USB power is good (high, 1, false) AND center button is NOT pressed (high, 1, false)