Skip to content

Commit 4517b9c

Browse files
authoredFeb 21, 2022
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.
1 parent dad946a commit 4517b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎variants/m5stack_core2/pins_arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <stdint.h>
55

66
#define EXTERNAL_NUM_INTERRUPTS 16
7-
#define NUM_DIGITAL_PINS 20
7+
#define NUM_DIGITAL_PINS 40
88
#define NUM_ANALOG_INPUTS 16
99

1010
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)

0 commit comments

Comments
 (0)