Skip to content

Commit 67fd652

Browse files
lamloeime-no-dev
authored andcommitted
Create pins_arduino.h for Node32s(#64)
1 parent dbf030f commit 67fd652

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: variants/node32s/pins_arduino.h

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#define EXTERNAL_NUM_INTERRUPTS 16
5+
#define NUM_DIGITAL_PINS 40
6+
#define NUM_ANALOG_INPUTS 18
7+
8+
#define analogInputToDigitalPin(p)
9+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
10+
#define digitalPinHasPWM(p) (p < 34)
11+
12+
static const uint8_t SDA = 21;
13+
static const uint8_t SCL = 22;
14+
15+
static const uint8_t SS = 5;
16+
static const uint8_t MOSI = 23;
17+
static const uint8_t MISO = 19;
18+
static const uint8_t SCK = 18;
19+
20+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)