floppyio – Read flux transition information into the buffer.

Available on these boards
  • Adafruit EdgeBadge
  • Adafruit Feather M4 CAN
  • Adafruit Feather M4 Express
  • Adafruit Feather RP2040
  • Adafruit Grand Central M4 Express
  • Adafruit Hallowing M4 Express
  • Adafruit ItsyBitsy M4 Express
  • Adafruit ItsyBitsy RP2040
  • Adafruit KB2040
  • Adafruit Macropad RP2040
  • Adafruit Metro M4 Airlift Lite
  • Adafruit Metro M4 Express
  • Adafruit Monster M4SK
  • Adafruit PyGamer
  • Adafruit PyPortal
  • Adafruit PyPortal Pynt
  • Adafruit PyPortal Titano
  • Adafruit Pybadge
  • Adafruit QT Py RP2040
  • Adafruit QT2040 Trinkey
  • Adafruit Trellis M4 Express
  • AloriumTech Evo M51
  • Arduino Nano RP2040 Connect
  • BDMICRO VINA-D51
  • CP32-M4
  • Challenger NB RP2040 WiFi
  • Challenger RP2040 LTE
  • Challenger RP2040 WiFi
  • CircuitBrains Deluxe
  • Cytron Maker Nano RP2040
  • Cytron Maker Pi RP2040
  • DynOSSAT-EDU-OBC
  • ELECFREAKS PICO:ED
  • EncoderPad RP2040
  • Melopero Shake RP2040
  • Mini SAM M4
  • Oak Dev Tech BREAD2040
  • Oak Dev Tech Cast-Away RP2040
  • Pimoroni Badger 2040
  • Pimoroni Interstate 75
  • Pimoroni Keybow 2040
  • Pimoroni Motor 2040
  • Pimoroni PGA2040
  • Pimoroni Pico LiPo (16MB)
  • Pimoroni Pico LiPo (4MB)
  • Pimoroni PicoSystem
  • Pimoroni Plasma 2040
  • Pimoroni Servo 2040
  • Pimoroni Tiny 2040 (2MB)
  • Pimoroni Tiny 2040 (8MB)
  • PyCubedv04
  • PyCubedv04-MRAM
  • PyCubedv05
  • PyCubedv05-MRAM
  • PyKey 18 Numpad
  • PyKey 44 Ergo
  • PyKey 60
  • PyKey 87 TKL
  • RP2.65-F
  • RP2040 Stamp
  • Raspberry Pi Pico
  • Robo HAT MM1 M4
  • SAM32v26
  • Seeeduino Wio Terminal
  • Seeeduino XIAO RP2040
  • Silicognition LLC M4-Shim
  • SparkFun MicroMod RP2040 Processor
  • SparkFun MicroMod SAMD51 Processor
  • SparkFun Pro Micro RP2040
  • SparkFun Thing Plus - RP2040
  • SparkFun Thing Plus - SAMD51
  • TG-Boards' Datalore IP M4
  • The Open Book Feather
  • UARTLogger II
  • W5100S-EVB-Pico
  • Waveshare RP2040-Zero
  • Winterbloom Sol

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.