-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add board support for Nologo ESP32S3 Pico
detail of nologo esp32s3 pico: https://www.nologo.tech/product/esp32/esp32s3Pico/esp32S3Pico.html
- Loading branch information
Showing
2 changed files
with
276 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,35 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
#include "soc/soc_caps.h" | ||
|
||
#define USB_VID 0x303a | ||
#define USB_PID 0x1001 | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 28 | ||
#define NUM_DIGITAL_PINS 48 | ||
#define NUM_ANALOG_INPUTS 10 | ||
|
||
static const uint8_t LED_BUILTIN = 21; | ||
#define BUILTIN_LED LED_BUILTIN | ||
#define LED_BUILTIN LED_BUILTIN | ||
#define RGB_BUILTIN SOC_GPIO_PIN_COUNT + LED_BUILTIN | ||
#define RGB_BRIGHTNESS 64 | ||
|
||
#define analogInputToDigitalPin(p) (((p)<10)?(analogChannelToDigitalPin(p)):-1) | ||
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1) | ||
#define digitalPinHasPWM(p) (p < 49) | ||
|
||
static const uint8_t A0 = 1; | ||
static const uint8_t A1 = 2; | ||
static const uint8_t A2 = 3; | ||
static const uint8_t A3 = 4; | ||
static const uint8_t A4 = 5; | ||
static const uint8_t A5 = 6; | ||
static const uint8_t A6 = 7; | ||
static const uint8_t A7 = 8; | ||
static const uint8_t A8 = 9; | ||
static const uint8_t A9 = 10; | ||
|
||
#endif /* Pins_Arduino_h */ |