SPI pins to definitons

This commit is contained in:
Petr Kracik 2019-12-12 18:28:35 +01:00
parent 857e0110fb
commit 5675c8e165
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 830B43F489EB7037

View File

@ -4,6 +4,10 @@
// SPI USB
#include <hidboot.h>
#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...");
}