SPI pins to definitons
This commit is contained in:
		@@ -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...");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user