0

#CircuitPython2022
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

#CircuitPython2022

by retiredwizard on Tue Jan 11, 2022 1:31 am

I have to say, it's not easy thinking of things to improve CircuitPython. Adafruit and the CP support community have been doing a great job supporting and moving the platform forward. Thanks!

I think adding intuitive flash file system commands (ls, cp, del, etc..) to the REPL would be a nice usability improvement. I know you can import the OS library and use the library functions to manipulate the file system, but the output and the interface isn't really optimized for an interactive experience.

*edit* As I think about the above suggestion, I'm realizing that I'm probably an usual use case as the first thing I usually do is switch the storage.remount mode so the microprocessor has read/write access rather than the host computer. It's only in this mode that the file system commands make any sense.....

I would also love to see some way of dealing with sensitive data on the flash. The secrets.py file could obviously benefit from better security and applications like password vaults that utilize HID keyboard input are another potential beneficiary. I know you can disable the usb_drive and REPL in the boot.py file but unless I'm mistaken, that means you would need to completely erase and re-flash a device every time you wanted to make a code or data change.

retiredwizard
 
Posts: 41
Joined: Wed Sep 28, 2016 9:06 pm

Re: #CircuitPython2022

by danhalbert on Tue Jan 11, 2022 9:59 am

but unless I'm mistaken, that means you would need to completely erase and re-flash a device every time you wanted to make a code or data change.

You just need to prevent boot.py from being run, either by having it check, say, a pin state, or getting into safe mode. See for instance: https://learn.adafruit.com/customizing- ... 3096636-15

However, that means anyone who knows how can read your data. But then that's often true, physical access breaks a lot of security regimes.

danhalbert
 
Posts: 3257
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.