3 #ifndef ADAFRUIT_FLOPPSY_H 4 #define ADAFRUIT_FLOPPSY_H 6 #if !defined(ARDUINO_ADAFRUIT_FLOPPSY_RP2350) && !defined(DOXYGEN) 7 #error "Select Adafruit Floppsy RP2350 in Tools > Board" 9 #include "Adafruit_Floppy.h" 10 #include <Adafruit_INA3221.h> 14 FLOPPSY_POWER_12V = 0,
16 FLOPPSY_POWER_3V3 = 2,
17 } floppsy_power_rail_t;
46 bool _initialized =
false;
Adafruit_Floppsy()
Construct the two drive interfaces without touching hardware.
Definition: Adafruit_Floppsy.cpp:8
void end()
Stop both drives, isolate the cable, and release the drive GPIO pins.
Definition: Adafruit_Floppsy.cpp:120
Adafruit_Floppy drive1
Drive interface using the DS1 output.
Definition: Adafruit_Floppsy.h:35
Board setup for RP2350 Floppsy in drive-controller mode.
Definition: Adafruit_Floppsy.h:27
Adafruit_Floppsy & operator=(const Adafruit_Floppsy &)=delete
Board hardware ownership cannot be assigned.
Adafruit_Floppy drive0
Drive interface using the DS0 output.
Definition: Adafruit_Floppsy.h:34
bool begin()
Initialize the drive pins, level shifters, BOOT button, and power monitor.
Definition: Adafruit_Floppsy.cpp:28
bool enable(bool enabled)
Connect the drive interface, or stop both drives and isolate the cable.
Definition: Adafruit_Floppsy.cpp:87
A helper class for chattin with PC & Shugart floppy drives.
Definition: Adafruit_Floppy.h:263
Adafruit_INA3221 powerMonitor
Three supply monitors, with 50 milliohm shunts.
Definition: Adafruit_Floppsy.h:37