Skip to content

Update and Fix Pins Definition of Deneyap Boards #8018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion variants/deneyapkart/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ static const uint8_t LED_BUILTIN = 4;
#define LEDB LED_BUILTIN
#define LEDR 3
#define LEDG 1
#define LEDB 4

static const uint8_t GPKEY = 0;
#define KEY_BUILTIN GPKEY
Expand Down
3 changes: 2 additions & 1 deletion variants/deneyapkart1A/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define Pins_Arduino_h

#include <stdint.h>
#include "soc/soc_caps.h"

#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS 40
Expand All @@ -11,7 +12,7 @@
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
#define digitalPinHasPWM(p) (p < 34)

static const uint8_t LED_BUILTIN = 13;
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+13;
#define BUILTIN_LED LED_BUILTIN
#define LED_BUILTIN LED_BUILTIN
#define RGB_BUILTIN LED_BUILTIN
Expand Down
3 changes: 2 additions & 1 deletion variants/deneyapkart1Av2/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define Pins_Arduino_h

#include <stdint.h>
#include "soc/soc_caps.h"

#define USB_VID 0x303A
#define USB_PID 0x8147
Expand All @@ -17,7 +18,7 @@
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)

static const uint8_t LED_BUILTIN = 48;
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+48;
#define BUILTIN_LED LED_BUILTIN
#define LED_BUILTIN LED_BUILTIN
#define RGB_BUILTIN LED_BUILTIN
Expand Down
3 changes: 2 additions & 1 deletion variants/deneyapkartg/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define Pins_Arduino_h

#include <stdint.h>
#include "soc/soc_caps.h"

#define USB_VID 0x303A
#define USB_PID 0x814A
Expand All @@ -17,7 +18,7 @@
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)

static const uint8_t LED_BUILTIN = 10;
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+10;
#define BUILTIN_LED LED_BUILTIN
#define LED_BUILTIN LED_BUILTIN
#define RGB_BUILTIN LED_BUILTIN
Expand Down
3 changes: 2 additions & 1 deletion variants/deneyapmini/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ static const uint8_t LED_BUILTIN = 35;
#define LEDB LED_BUILTIN
#define LEDR 34
#define LEDG 33
#define LEDB 35

static const uint8_t GPKEY = 0;
#define KEY_BUILTIN GPKEY
Expand Down Expand Up @@ -82,6 +81,7 @@ static const uint8_t PWM1 = 41;
static const uint8_t DAC0 = 17;
static const uint8_t DAC1 = 18;

/*
#define SD SDA
#define SC SCL

Expand All @@ -91,5 +91,6 @@ static const uint8_t DAC1 = 18;

#define DA0 DAC0
#define DA1 DAC1
*/

#endif /* Pins_Arduino_h */
5 changes: 4 additions & 1 deletion variants/deneyapminiv2/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define Pins_Arduino_h

#include <stdint.h>
#include "soc/soc_caps.h"

#define USB_VID 0x303A
#define USB_PID 0x8144
Expand All @@ -17,7 +18,7 @@
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)

static const uint8_t LED_BUILTIN = 33;
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+33;
#define BUILTIN_LED LED_BUILTIN
#define LED_BUILTIN LED_BUILTIN
#define RGB_BUILTIN LED_BUILTIN
Expand Down Expand Up @@ -80,6 +81,7 @@ static const uint8_t PWM1 = 41;
static const uint8_t DAC0 = 17;
static const uint8_t DAC1 = 18;

/*
#define SD SDA
#define SC SCL

Expand All @@ -89,5 +91,6 @@ static const uint8_t DAC1 = 18;

#define DA0 DAC0
#define DA1 DAC1
*/

#endif /* Pins_Arduino_h */