-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MF…
…W-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json
- Loading branch information
1 parent
0c6222c
commit 0b645ae
Showing
3 changed files
with
422 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 22 | ||
#define NUM_DIGITAL_PINS 22 | ||
#define NUM_ANALOG_INPUTS 6 | ||
|
||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1) | ||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1) | ||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS) | ||
|
||
static const uint8_t TX = 21; | ||
static const uint8_t RX = 20; | ||
|
||
static const uint8_t TX1 = 0; | ||
static const uint8_t RX1 = 1; | ||
|
||
static const uint8_t SDA = 5; | ||
static const uint8_t SCL = 6; | ||
|
||
static const uint8_t SS = 20; | ||
static const uint8_t MOSI = 10; | ||
static const uint8_t MISO = 9; | ||
static const uint8_t SCK = 8; | ||
|
||
static const uint8_t A0 = 2; | ||
static const uint8_t A1 = 3; | ||
static const uint8_t A2 = 4; | ||
static const uint8_t A3 = 5; | ||
|
||
static const uint8_t D0 = 2; | ||
static const uint8_t D1 = 3; | ||
static const uint8_t D2 = 4; | ||
static const uint8_t D3 = 5; | ||
static const uint8_t D4 = 6; | ||
static const uint8_t D5 = 7; | ||
static const uint8_t D6 = 21; | ||
static const uint8_t D7 = 20; | ||
static const uint8_t D8 = 8; | ||
static const uint8_t D9 = 9; | ||
static const uint8_t D10 = 10; | ||
|
||
static const uint8_t GPIO_IIC_DATA = 5; | ||
static const uint8_t GPIO_IIC_CLOCK = 6; | ||
static const uint8_t GPIO_PWRKEY = 7; | ||
static const uint8_t GPIO_GSM_ENABLE = 10; | ||
static const uint8_t GPIO_TPS_ENABLE = 4; | ||
static const uint8_t GPIO_INT1 = 3; | ||
static const uint8_t GPIO_ANALOG_IN = 2; | ||
static const uint8_t GPIO_SOS = 9; | ||
static const uint8_t GPIO_CHG_IN = 4; | ||
static const uint8_t GPIO_LED_SIGNAL = 8; | ||
|
||
|
||
#endif /* Pins_Arduino_h */ |
Oops, something went wrong.