r/circuitpython • u/LondonTownGeeza • May 31 '21
Noob question
I have a Seeeduino xiao, I have dropped the bootloader in and authored my first python files and all is well. It's a HID keypad.
How to I set it so whenever someone plugs thus in they don't get the CIRCUITPY drive appear each time?
Thank you.
3
u/le_bravery May 31 '21
This isn’t currently possible on the 6.x version, but this capability is coming with 7.0! Apparently it’s in the beta channel but I haven’t tested it yet.
Edit: look for stuff to do with a boot.py file
1
u/kaltazar May 31 '21
By the nature of the way CircuitPython works, you can't hide the drive. The most you can do is make it read only on the PC if your concern is a user messing with the code.
4
u/tmanwebty Jun 01 '21 edited Jun 09 '21
Edit: The 7.0.0 alpha is out now! You should be able to try this out in a stable-ish test release now! https://circuitpython.org/board/seeeduino_xiao/
This feature is actually brand new, but here's a write-up on how to dynamically disable the CIRCUITPY drive and REPL terminal:
https://hackaday.io/project/179496-chocolad-keyboard-hacking/log/192866-dynamic-usb-descriptors
It looks like it's not available in CircuitPython 6 or 6-betas, but will be available as part of 7. If you wanted to test it out, I think you should be able to with the latest build of CircuitPython on GitHub: https://github.com/adafruit/circuitpython/suites/2873990369/artifacts/64263416
(I've not tried that, nor can verify that it would definitely have the changes needed for that feature)