Use serial file transfer on supported firmware#537
Merged
makermelissa merged 3 commits intoJul 23, 2026
Merged
Conversation
Collaborator
|
While it tests functionally, we're going to move some of this code over to https://github.com/adafruit/circuitpython-repl-js |
makermelissa
approved these changes
Jul 23, 2026
makermelissa
left a comment
Collaborator
There was a problem hiding this comment.
Tested and working.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
storage.unsafe_disable_usb_drive()when the USB workflowconnects to a read-only CIRCUITPY filesystem
mass storage
fallback for older or unsupported firmware
Why
New CircuitPython firmware support from
adafruit/circuitpython#11124 allows the editor to take CIRCUITPY offline after
USB has started. This makes the filesystem writable through the REPL and
removes the folder-operation limitations of the browser File System Access API.
The capability is detected at runtime rather than inferred from the firmware
version, so existing boards and firmware continue to use the current workflow.
Closes #399.
Dependency
Uses
@adafruit/circuitpython-repl-js3.4.0, which includes the USB-drivecontrol helpers added by adafruit/circuitpython-repl-js#24.
Validation
npm run buildgit diff --checkCIRCUITPY disappeared during the serial editing session, REPL file operations
worked, and the drive returned after disconnecting