Sfoglia il codice sorgente

Default CS pins for Ethernet on Teensy 2.0 & Teensy++ 2.0

teensy4-core
PaulStoffregen 6 anni fa
parent
commit
8eb99cf897
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +6
    -0
      teensy/pins_arduino.h

+ 6
- 0
teensy/pins_arduino.h Vedi File

@@ -36,6 +36,12 @@ const static uint8_t SCL = CORE_SCL0_PIN;
#define NUM_DIGITAL_PINS CORE_NUM_TOTAL_PINS
#define NUM_ANALOG_INPUTS CORE_NUM_ANALOG

// default CS pin to use for Ethernet library
#if defined(__AVR_ATmega32U4__)
#define PIN_SPI_SS_ETHERNET_LIB 0
#elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
#define PIN_SPI_SS_ETHERNET_LIB 20
#endif

// This allows CapSense to work. Do any libraries
// depend on these to be zero?

Loading…
Annulla
Salva