mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-25 09:51:33 +02:00
The M5Core2 and M5Tough have 40 pins (#6315)
Summary The M5Core2 and the very similar M5Tough have 40 digital pins See reference here: https://docs.m5stack.com/en/core/core2 as well as the constant declarations in the bottom part of the file. Impact Without this, Code that needs the total number of pins (e.g. firmata) doesn't show the higher pin numbers correctly.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 20
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
|
Reference in New Issue
Block a user