felis / USB_Host_Shield_2.0

Revision 2.0 of USB Host Library for Arduino.
https://chome.nerpa.tech
1.79k stars 779 forks source link

How can we reroute SS and Int pins in code? #352

Closed jsweet13 closed 6 years ago

jsweet13 commented 6 years ago

Hello,

I'm browsing through all files in the 2.0 library to find the SS and Int pin Pi out for the Arduino Uno but not really having any luck.

I broke the connections and rerouted SS to pin A5 and rerouted INT to A0 on my Arduino Uno so I can display chars on a tftlcd display.

How do I reflect A5 and A0 pins in the USBcore.h file?

I see and changed this line to: typedef MAX3241e<PA0, PA5> MAX3241E;

Is this correct? And are there regular variable names I can use to change the PIN numbers dynamically in code?

Thanks for your help.

Lauszus commented 6 years ago

Please see: #353.