Browse Source

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

teensy4-core
PaulStoffregen 6 years ago
parent
commit
8eb99cf897
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      teensy/pins_arduino.h

+ 6
- 0
teensy/pins_arduino.h View File

#define NUM_DIGITAL_PINS CORE_NUM_TOTAL_PINS #define NUM_DIGITAL_PINS CORE_NUM_TOTAL_PINS
#define NUM_ANALOG_INPUTS CORE_NUM_ANALOG #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 // This allows CapSense to work. Do any libraries
// depend on these to be zero? // depend on these to be zero?

Loading…
Cancel
Save