floppyio
– Read flux transition information into the buffer.¶
Available on these boards
- floppyio.flux_readinto(buffer: circuitpython_typing.WriteableBuffer, data: digitalio.DigitalInOut, index: digitalio.DigitalInOut) int ¶
The function returns when the buffer has filled, or when the index input indicates that one full revolution of data has been recorded. Due to technical limitations, this process may not be interruptible by KeyboardInterrupt.
- Parameters
buffer – Read data into this buffer. Each element represents the time between successive zero-to-one transitions.
data – Pin on which the flux data appears
index – Pin on which the index pulse appears
- Returns
The actual number of bytes of read
- floppyio.mfm_readinto(buffer: circuitpython_typing.WriteableBuffer, data: digitalio.DigitalInOut, index: digitalio.DigitalInOut) int ¶
Read mfm blocks into the buffer.
The track is assumed to consist of 512-byte sectors.
The function returns when all sectors have been successfully read, or a number of index pulses have occurred. Due to technical limitations, this process may not be interruptible by KeyboardInterrupt.
- Parameters
buffer – Read data into this buffer. Must be a multiple of 512.
data – Pin on which the mfm data appears
index – Pin on which the index pulse appears
- Returns
The actual number of sectors read
- floppyio.samplerate :int¶
The approximate sample rate in Hz used by flux_readinto.