-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add floppyio #5852
Add floppyio #5852
Conversation
The port is free to return NULL for any/all of these, and the caller has to check. This will be used in the floppy code, because aside from getting the registers, it looks like all is independent of MCU.
Initially enabled for samd51, this enables reading raw flux data as well as DOS/MFM formatted media. This is only the low-level code for reading & decoding flux pulses from a floppy drive. high level details will live in a Python library. adafruit-circuitpython-floppy will take care of details like stepping from track to track, etc.
Let's hold this for a bit, @ladyada wants to re-org files in Adafruit_Floppy, which we submodule here. |
Tested on RP2040 Feather with a 3.5" Prodigy diskette, the whole surface reads 100% across 3+ trials.
@jepler Are you still waiting for a review? I thought you might be still churning this on a daily basis. |
I think there'll still be churn before this is really ready to go in, so we can close it or switch it to draft. |
I made it draft, np. |
This is needed so that the floppy flux reader can enable the pull up on the index pin while using it as a pio jmp pin. Also fixes a doc bug where the `jmp_pin` was omitted in one spot in the docs.
I don't understand how this stopped fitting, as none of the added code is used in this build.
I need to go through a round of testing on this, but we decided to go ahead with this limited functionality in CircuitPython. Most users will probably want to use Arduino for more advanced stuff (or just the gw-compatible firmware), and that's OK. After I re-test mfm floppy reading on hardware, I'll set this as ready for review. |
I brought this up to date and re-tested with a Feather M4 & 5.25" floppy drive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Will merge to get it available.
Initially enabled for samd51, this enables reading raw flux data as well as DOS/MFM formatted media.
This is only the low-level code for reading & decoding flux pulses from a floppy drive. high level details will live in a Python library.
Adafruit_CircuitPython_floppy takes care of details like stepping from track to track, etc.