Unverified Commit af476581 authored by Dogus Cendek's avatar Dogus Cendek Committed by GitHub

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.
parent 3f679e8a
......@@ -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
......
......@@ -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
......@@ -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
......
......@@ -2,6 +2,7 @@
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
#define USB_VID 0x303A
#define USB_PID 0x8147
......@@ -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
......
......@@ -2,6 +2,7 @@
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
#define USB_VID 0x303A
#define USB_PID 0x814A
......@@ -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
......
......@@ -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
......@@ -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
......@@ -91,5 +91,6 @@ static const uint8_t DAC1 = 18;
#define DA0 DAC0
#define DA1 DAC1
*/
#endif /* Pins_Arduino_h */
......@@ -2,6 +2,7 @@
#define Pins_Arduino_h
#include <stdint.h>
#include "soc/soc_caps.h"
#define USB_VID 0x303A
#define USB_PID 0x8144
......@@ -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
......@@ -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
......@@ -89,5 +91,6 @@ static const uint8_t DAC1 = 18;
#define DA0 DAC0
#define DA1 DAC1
*/
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment