Skip to content

Commit b0a4add

Browse files
authored
[V30x] pin map for SPI3 and SDIO #161
Added new pin definitions and updated the number of digital pins. openwch/arduino_core_ch32#161
1 parent e905899 commit b0a4add

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

variants/CH32V30x/CH32V307VCT6/variant_CH32V307VCT6.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,18 @@
4343
#define PB14 18
4444
#define PB13 19
4545
#define PB11 20
46-
#define PB10 21
46+
#define PB10 21
47+
#define PA15 22
48+
#define PB4 23
49+
#define PB3 24
50+
#define PC8 25
51+
#define PC9 26
52+
#define PC10 27
53+
#define PC11 28
54+
#define PC6 29
55+
#define PC7 30
56+
#define PC12 31
57+
#define PD2 32
4758

4859

4960
// Alternate pins number
@@ -60,7 +71,7 @@
6071

6172

6273

63-
#define NUM_DIGITAL_PINS 22
74+
#define NUM_DIGITAL_PINS 33
6475
#define NUM_ANALOG_INPUTS 6
6576
// #define ADC_CTLR_ADCAL
6677
#define ADC_RESOLUTION 12

0 commit comments

Comments
 (0)