like the title says, it would help to have a way to detect if the device is connected only on an usb power source or actually is accessed as a mass storage device
this way i could write myself a boot.py that could wait around 5seconds before actually calling my main.py
if the device is connected as mass storage, i would prevent causing damage to the internal writing system but if the device is not connected as mass storage i would disable the mass storage interace after 5 seconds and allow self writing
like the title says, it would help to have a way to detect if the device is connected only on an usb power source or actually is accessed as a mass storage device
this way i could write myself a boot.py that could wait around 5seconds before actually calling my main.py
if the device is connected as mass storage, i would prevent causing damage to the internal writing system but if the device is not connected as mass storage i would disable the mass storage interace after 5 seconds and allow self writing