* add c2 * Fix typo * changes from code review * rm hack needed to compile for c2 * rm `DARDUINO_USB_MODE=1` not needed for c2 * log_e message no RMT support * correct log_e * Update esp32-hal-rgb-led.c * Add component test build for ESP32-C2 * Disable most components for ESP32-C2 * Add missing ADC SOC defines for ESP32-C2 * Add hidden board definition and fix LED pin in variant * Add default empty zigbee libs and mode * Change SPI default pins * change rx1 tx1 default gpio --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> Co-authored-by: me-no-dev <hristo@espressif.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
29 lines
707 B
C
29 lines
707 B
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
#include "soc/soc_caps.h"
|
|
|
|
|
|
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+13;
|
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
|
|
|
|
static const uint8_t TX = 20;
|
|
static const uint8_t RX = 19;
|
|
|
|
static const uint8_t SDA = 8;
|
|
static const uint8_t SCL = 9;
|
|
|
|
static const uint8_t SS = 7;
|
|
static const uint8_t MOSI = 6;
|
|
static const uint8_t MISO = 5;
|
|
static const uint8_t SCK = 4;
|
|
|
|
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;
|
|
|
|
#endif /* Pins_Arduino_h */
|