瀏覽代碼

T4.1 Update count of digital and analog pins

It was defaulting to the same NUM_DIGITAL_PINS and NUM_ANALOG_INPUTS as the T4.0 so updated for the new pins
main
Kurt Eckhardt 4 年之前
父節點
當前提交
eb728eb9b6
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      teensy4/pins_arduino.h

+ 5
- 1
teensy4/pins_arduino.h 查看文件

@@ -93,9 +93,13 @@ const static uint8_t SCL = 19;
#define PIN_SERIAL_TX (1)


#ifdef ARDUINO_TEENSY41
#define NUM_DIGITAL_PINS 55
#define NUM_ANALOG_INPUTS 18
#else
#define NUM_DIGITAL_PINS 40
#define NUM_ANALOG_INPUTS 14

#endif

#define NOT_AN_INTERRUPT -1


Loading…
取消
儲存