Skip to content

Commit 00d3e45

Browse files
committed
Fix Pin Definition
Remove repeating pin definitions of SPI, I2C and DAC. Update RGB LED definition for using digitalWrite() command with RGB LED.
1 parent 1dec898 commit 00d3e45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

variants/deneyapminiv2/pins_arduino.h

Lines changed: 4 additions & 1 deletion
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)