Update and Fix Pins Definition of Deneyap Boards (#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.
This commit is contained in:
parent
3f679e8aa4
commit
af476581ea
6 changed files with 12 additions and 6 deletions
|
|
@ -17,7 +17,6 @@ static const uint8_t LED_BUILTIN = 4;
|
||||||
#define LEDB LED_BUILTIN
|
#define LEDB LED_BUILTIN
|
||||||
#define LEDR 3
|
#define LEDR 3
|
||||||
#define LEDG 1
|
#define LEDG 1
|
||||||
#define LEDB 4
|
|
||||||
|
|
||||||
static const uint8_t GPKEY = 0;
|
static const uint8_t GPKEY = 0;
|
||||||
#define KEY_BUILTIN GPKEY
|
#define KEY_BUILTIN GPKEY
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#define Pins_Arduino_h
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||||
#define NUM_DIGITAL_PINS 40
|
#define NUM_DIGITAL_PINS 40
|
||||||
|
|
@ -11,7 +12,7 @@
|
||||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||||
#define digitalPinHasPWM(p) (p < 34)
|
#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 BUILTIN_LED LED_BUILTIN
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
#define RGB_BUILTIN LED_BUILTIN
|
#define RGB_BUILTIN LED_BUILTIN
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#define Pins_Arduino_h
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
#define USB_VID 0x303A
|
#define USB_VID 0x303A
|
||||||
#define USB_PID 0x8147
|
#define USB_PID 0x8147
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
#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 BUILTIN_LED LED_BUILTIN
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
#define RGB_BUILTIN LED_BUILTIN
|
#define RGB_BUILTIN LED_BUILTIN
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#define Pins_Arduino_h
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
#define USB_VID 0x303A
|
#define USB_VID 0x303A
|
||||||
#define USB_PID 0x814A
|
#define USB_PID 0x814A
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
||||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
#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 BUILTIN_LED LED_BUILTIN
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
#define RGB_BUILTIN LED_BUILTIN
|
#define RGB_BUILTIN LED_BUILTIN
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ static const uint8_t LED_BUILTIN = 35;
|
||||||
#define LEDB LED_BUILTIN
|
#define LEDB LED_BUILTIN
|
||||||
#define LEDR 34
|
#define LEDR 34
|
||||||
#define LEDG 33
|
#define LEDG 33
|
||||||
#define LEDB 35
|
|
||||||
|
|
||||||
static const uint8_t GPKEY = 0;
|
static const uint8_t GPKEY = 0;
|
||||||
#define KEY_BUILTIN GPKEY
|
#define KEY_BUILTIN GPKEY
|
||||||
|
|
@ -82,6 +81,7 @@ static const uint8_t PWM1 = 41;
|
||||||
static const uint8_t DAC0 = 17;
|
static const uint8_t DAC0 = 17;
|
||||||
static const uint8_t DAC1 = 18;
|
static const uint8_t DAC1 = 18;
|
||||||
|
|
||||||
|
/*
|
||||||
#define SD SDA
|
#define SD SDA
|
||||||
#define SC SCL
|
#define SC SCL
|
||||||
|
|
||||||
|
|
@ -91,5 +91,6 @@ static const uint8_t DAC1 = 18;
|
||||||
|
|
||||||
#define DA0 DAC0
|
#define DA0 DAC0
|
||||||
#define DA1 DAC1
|
#define DA1 DAC1
|
||||||
|
*/
|
||||||
|
|
||||||
#endif /* Pins_Arduino_h */
|
#endif /* Pins_Arduino_h */
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#define Pins_Arduino_h
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
#define USB_VID 0x303A
|
#define USB_VID 0x303A
|
||||||
#define USB_PID 0x8144
|
#define USB_PID 0x8144
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
||||||
#define digitalPinHasPWM(p) (p < 46)
|
#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 BUILTIN_LED LED_BUILTIN
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
#define LED_BUILTIN LED_BUILTIN
|
||||||
#define RGB_BUILTIN LED_BUILTIN
|
#define RGB_BUILTIN LED_BUILTIN
|
||||||
|
|
@ -80,6 +81,7 @@ static const uint8_t PWM1 = 41;
|
||||||
static const uint8_t DAC0 = 17;
|
static const uint8_t DAC0 = 17;
|
||||||
static const uint8_t DAC1 = 18;
|
static const uint8_t DAC1 = 18;
|
||||||
|
|
||||||
|
/*
|
||||||
#define SD SDA
|
#define SD SDA
|
||||||
#define SC SCL
|
#define SC SCL
|
||||||
|
|
||||||
|
|
@ -89,5 +91,6 @@ static const uint8_t DAC1 = 18;
|
||||||
|
|
||||||
#define DA0 DAC0
|
#define DA0 DAC0
|
||||||
#define DA1 DAC1
|
#define DA1 DAC1
|
||||||
|
*/
|
||||||
|
|
||||||
#endif /* Pins_Arduino_h */
|
#endif /* Pins_Arduino_h */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue