Skip to content

Commit af47658

Browse files
authored
Update and Fix Pins Definition of Deneyap Boards (espressif#8018)
* Updated Pins of Devkits Deleted soc_caps.h library and related commands at Deneyap Kart 1A v2, Deneyap Kart 1A, Deneyap Mini and Deneyap Mini v2. Added TX1 and RX1 pins and updated LED pin definition at all Devkits. Added BOOT (BT) pins at Deneyap Kart, Deneyap Kart 1A, Deneyap Mini and Deneyap Kart G. Changed D0 and D1 pin numbers at Deneyap Kart G. Changed D12, D13, D14, D15, PWM0 and PWM1 pin numbers at Deneyap Kart 1A v2. Added A8, T0, T1, T2, T3, T4, T5, T6, T7, T8, D16, D17, D18, D19, PWM2, PWM3, PWM4 and BAT pin numbers at Deneyap Kart 1A v2. Changed A2, A3, A4 (T0) and A5 (T1) pin numbers at Deneyap Kart and Deneyap Kart 1A. Renamed DA2 (DAC2) pin as DA0 (DAC0) and changed DAC1 and DAC2 pin numbers at Deneyap Mini and Deneyap Mini v2. * Updated board.txt of all Devkits Updated board.txt of all Devkits * Remove Repeating Pin Definition Remove Repeating Pin Definition * Fix Pin Definition Remove repeating pin definitions of SPI, I2C and DAC. Update RGB LED definition for using digitalWrite() command with RGB LED. * Remove Repeating Pin Definitions Remove repeating pin definitions of LEDB, SPI, I2C and DAC. * Update RGB LED definition Update RGB LED definition for using digitalWrite() command with RGB LED.
1 parent 3f679e8 commit af47658

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

variants/deneyapkart/pins_arduino.h

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ static const uint8_t LED_BUILTIN = 4;
1717
#define LEDB LED_BUILTIN
1818
#define LEDR 3
1919
#define LEDG 1
20-
#define LEDB 4
2120

2221
static const uint8_t GPKEY = 0;
2322
#define KEY_BUILTIN GPKEY

variants/deneyapkart1A/pins_arduino.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define EXTERNAL_NUM_INTERRUPTS 16
78
#define NUM_DIGITAL_PINS 40
@@ -11,7 +12,7 @@
1112
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
1213
#define digitalPinHasPWM(p) (p < 34)
1314

14-
static const uint8_t LED_BUILTIN = 13;
15+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+13;
1516
#define BUILTIN_LED LED_BUILTIN
1617
#define LED_BUILTIN LED_BUILTIN
1718
#define RGB_BUILTIN LED_BUILTIN

variants/deneyapkart1Av2/pins_arduino.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define USB_VID 0x303A
78
#define USB_PID 0x8147
@@ -17,7 +18,7 @@
1718
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1819
#define digitalPinHasPWM(p) (p < 46)
1920

20-
static const uint8_t LED_BUILTIN = 48;
21+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+48;
2122
#define BUILTIN_LED LED_BUILTIN
2223
#define LED_BUILTIN LED_BUILTIN
2324
#define RGB_BUILTIN LED_BUILTIN

variants/deneyapkartg/pins_arduino.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define USB_VID 0x303A
78
#define USB_PID 0x814A
@@ -17,7 +18,7 @@
1718
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
1819
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
1920

20-
static const uint8_t LED_BUILTIN = 10;
21+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+10;
2122
#define BUILTIN_LED LED_BUILTIN
2223
#define LED_BUILTIN LED_BUILTIN
2324
#define RGB_BUILTIN LED_BUILTIN

variants/deneyapmini/pins_arduino.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static const uint8_t LED_BUILTIN = 35;
2323
#define LEDB LED_BUILTIN
2424
#define LEDR 34
2525
#define LEDG 33
26-
#define LEDB 35
2726

2827
static const uint8_t GPKEY = 0;
2928
#define KEY_BUILTIN GPKEY
@@ -82,6 +81,7 @@ static const uint8_t PWM1 = 41;
8281
static const uint8_t DAC0 = 17;
8382
static const uint8_t DAC1 = 18;
8483

84+
/*
8585
#define SD SDA
8686
#define SC SCL
8787
@@ -91,5 +91,6 @@ static const uint8_t DAC1 = 18;
9191
9292
#define DA0 DAC0
9393
#define DA1 DAC1
94+
*/
9495

9596
#endif /* Pins_Arduino_h */

variants/deneyapminiv2/pins_arduino.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define USB_VID 0x303A
78
#define USB_PID 0x8144
@@ -17,7 +18,7 @@
1718
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1819
#define digitalPinHasPWM(p) (p < 46)
1920

20-
static const uint8_t LED_BUILTIN = 33;
21+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+33;
2122
#define BUILTIN_LED LED_BUILTIN
2223
#define LED_BUILTIN LED_BUILTIN
2324
#define RGB_BUILTIN LED_BUILTIN
@@ -80,6 +81,7 @@ static const uint8_t PWM1 = 41;
8081
static const uint8_t DAC0 = 17;
8182
static const uint8_t DAC1 = 18;
8283

84+
/*
8385
#define SD SDA
8486
#define SC SCL
8587
@@ -89,5 +91,6 @@ static const uint8_t DAC1 = 18;
8991
9092
#define DA0 DAC0
9193
#define DA1 DAC1
94+
*/
9295

9396
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)