* Add Config * Add Cache and remove pre-commit action * [pre-commit.ci lite] apply automatic fixes * Remove freeze * Fix * Update action * Use latest stable Python 3 version * Improve caching * Improve cache tag * Improve bot message * fix(typos): Fix typos * fix(typos): Fix more typos * refactor(udp_server): Convert script from Python 2 to 3 * Fix whitespace * Clang-format fixes * Prettier fixes * Black formatting * Manual fixes * Line endings * Fix flake and make Vale manual * Fix flake and reformat --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
#include "soc/soc_caps.h"
|
|
|
|
#define USB_VID 0x239A
|
|
#define USB_PID 0x8125
|
|
#define USB_MANUFACTURER "Adafruit"
|
|
#define USB_PRODUCT "MatrixPortal ESP32-S3"
|
|
#define USB_SERIAL "" // Empty string for MAC address
|
|
|
|
// User LED
|
|
#define LED_BUILTIN 13
|
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
|
|
#define PIN_NEOPIXEL 4
|
|
#define NEOPIXEL_PIN 4
|
|
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite() and digitalWrite() for blinking
|
|
#define RGB_BUILTIN (PIN_NEOPIXEL + SOC_GPIO_PIN_COUNT)
|
|
#define RGB_BRIGHTNESS 64
|
|
|
|
#define NEOPIXEL_NUM 1
|
|
#define PIN_LIGHTSENSOR A5
|
|
|
|
#define PIN_BUTTON_UP 6
|
|
#define PIN_BUTTON_DOWN 7
|
|
|
|
static const uint8_t TX = 18;
|
|
static const uint8_t RX = 8;
|
|
#define TX1 TX
|
|
#define RX1 RX
|
|
|
|
static const uint8_t SDA = 16;
|
|
static const uint8_t SCL = 17;
|
|
|
|
static const uint8_t SS = -1;
|
|
static const uint8_t MOSI = -1;
|
|
static const uint8_t SCK = -1;
|
|
static const uint8_t MISO = -1;
|
|
|
|
static const uint8_t A0 = 12;
|
|
static const uint8_t A1 = 3;
|
|
static const uint8_t A2 = 9;
|
|
static const uint8_t A3 = 10;
|
|
static const uint8_t A4 = 11;
|
|
static const uint8_t A5 = 5; // Light
|
|
|
|
static const uint8_t T3 = 3; // Touch pin IDs map directly
|
|
static const uint8_t T8 = 8; // to underlying GPIO numbers NOT
|
|
static const uint8_t T9 = 9; // the analog numbers on board silk
|
|
static const uint8_t T10 = 10;
|
|
static const uint8_t T11 = 11;
|
|
static const uint8_t T12 = 12;
|
|
|
|
#endif /* Pins_Arduino_h */
|