From 5675c8e165013010cd249e68db7d5f46a58b9e74 Mon Sep 17 00:00:00 2001 From: Petr Kracik Date: Thu, 12 Dec 2019 18:28:35 +0100 Subject: [PATCH] SPI pins to definitons --- YAOCMouse.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/YAOCMouse.ino b/YAOCMouse.ino index 48ada01..240b345 100644 --- a/YAOCMouse.ino +++ b/YAOCMouse.ino @@ -4,6 +4,10 @@ // SPI USB #include +#define SPI_SCLK 32 +#define SPI_MISO 35 +#define SPI_MOSI 33 +#define SPI_SS 5 #define PIN_MOUSE_V 19 // LAN_TX0 #define PIN_MOUSE_VQ 26 // LAN_RX1 @@ -170,7 +174,7 @@ void setup() { Serial.println("INIT"); Serial.print("USB init..."); - SPI.begin(32, 35, 33, 5); + SPI.begin(SPI_SCLK, SPI_MISO, SPI_MOSI, SPI_SS); if (Usb.Init() == -1) { Serial.println("WARN: Usb init failed."); @@ -183,8 +187,6 @@ void setup() { HidMouse.SetReportParser(0, &PrsMouse); - Serial.print("Interupts init..."); - Serial.println("Ready to rock and roll..."); }