|
Adafruit Library
|
Board setup for RP2350 Floppsy in drive-controller mode. More...
#include <Adafruit_Floppsy.h>
Public Member Functions | |
| Adafruit_Floppsy () | |
| Construct the two drive interfaces without touching hardware. | |
| bool | begin () |
| Initialize the drive pins, level shifters, BOOT button, and power monitor. More... | |
| bool | enable (bool enabled) |
| Connect the drive interface, or stop both drives and isolate the cable. More... | |
| void | end () |
| Stop both drives, isolate the cable, and release the drive GPIO pins. | |
| Adafruit_Floppsy (const Adafruit_Floppsy &)=delete | |
| Board hardware ownership cannot be copied. | |
| Adafruit_Floppsy & | operator= (const Adafruit_Floppsy &)=delete |
| Board hardware ownership cannot be assigned. More... | |
Public Attributes | |
| Adafruit_Floppy | drive0 |
| Drive interface using the DS0 output. | |
| Adafruit_Floppy | drive1 |
| Drive interface using the DS1 output. | |
| Adafruit_INA3221 | powerMonitor |
| Three supply monitors, with 50 milliohm shunts. | |
Board setup for RP2350 Floppsy in drive-controller mode.
Own one instance per board. The two drive interfaces share the cable and motor signal; select only one drive at a time. Call begin(), check the supply voltages required by your drive, then enable(true) before drive operations. Display, touch, SD, USB host, and drive-emulation setup are separate.
| bool Adafruit_Floppsy::begin | ( | ) |
Initialize the drive pins, level shifters, BOOT button, and power monitor.
| bool Adafruit_Floppsy::enable | ( | bool | enabled | ) |
Connect the drive interface, or stop both drives and isolate the cable.
| enabled | True to connect the controller signals; false to stop/isolate. |
|
delete |
Board hardware ownership cannot be assigned.
1.8.13