diff --git a/examples/greaseweazle/greaseweazle.ino b/examples/greaseweazle/greaseweazle.ino index 0b6b697..9960fb5 100644 --- a/examples/greaseweazle/greaseweazle.ino +++ b/examples/greaseweazle/greaseweazle.ino @@ -28,9 +28,6 @@ #define READ_PIN 9 // IDC 30 #define SIDE_PIN 8 // IDC 32 #define READY_PIN 7 // IDC 34 -#ifndef USE_TINYUSB -#error "Please set Adafruit TinyUSB under Tools > USB Stack" -#endif #elif defined(ARDUINO_RASPBERRY_PI_PICO) #define DENSITY_PIN 2 // IDC 2 #define INDEX_PIN 3 // IDC 8 @@ -45,13 +42,15 @@ #define READ_PIN 12 // IDC 30 #define SIDE_PIN 13 // IDC 32 #define READY_PIN 14 // IDC 34 -#ifndef USE_TINYUSB -#error "Please set Adafruit TinyUSB under Tools > USB Stack" -#endif +#elif defined(ARDUINO_ADAFRUIT_FLOPPSY_RP2040) +// Yay built in pin definitions! #else #error "Please set up pin definitions!" #endif +#ifndef USE_TINYUSB +#error "Please set Adafruit TinyUSB under Tools > USB Stack" +#endif #if defined (ARDUINO_ADAFRUIT_FEATHER_RP2040) // jepler's prototype board, subject to change @@ -165,6 +164,14 @@ bool setbustype(int bustype) { void setup() { Serial.begin(115200); Serial1.begin(115200); + +#if defined(FLOPPY_DIRECTION_PIN) + pinMode(FLOPPY_DIRECTION_PIN, OUTPUT); + digitalWrite(FLOPPY_DIRECTION_PIN, HIGH); +#endif + + delay(100); + //while (!Serial) delay(100); Serial1.println("GrizzlyWizzly"); @@ -675,4 +682,4 @@ needfloppy: Serial.write(reply_buffer, 2); //Serial1.println("cmd complete!"); -} +} \ No newline at end of file