• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Spitko

  • Rank
  1. This is likely a daft question, but the website seems to be broken right now so off we go to the forums. I'm trying to port the USB Host library ( https://github.com/arduino-libraries/USBHost ). It uses the fairly typical avrpins.h, and further has a bunch of SPI glue in usbhost.h Is there a guide somewhere on porting arduino libraries? At a high level it's looking for arduino pin names like pd5, which don't appear to have an obvious analog (that I saw anyway). The SPI code also seems to expect explicit pin assignments but the spi examples seem to derive their pinouts from a single wing constant Specific snippits, for those uninterested in digging through github sources: SPI setup // ... #elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) typedef SPi< Pb5, Pb3, Pb4, Pb2 > spi; #endif avrpins.h //... #elif defined(__AVR_ATmega32U4__) // Arduino Leonardo pin numbers #define P0 Pd2 // D0 - PD2 #define P1 Pd3 // D1 - PD3 #define P2 Pd1 // D2 - PD1 /...