arduino-esp32/variants/d1_mini32/pins_arduino.h
Rodrigo Garcia ab6a25ed8d
Master5.1 s3 gpio48 and platform txt review (#8726)
* variants + S3 GPIO48

* fixes unphone8.build.flash_type

* fixes unphone8.build.flash_type

* heltec board name issue step 1

* heltec board name issue step 2

* fixes defines and new boards

* final review
2023-10-06 13:50:15 +03:00

34 lines
1 KiB
C

#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#include <../d32/d32_core.h>
static const uint8_t LED_BUILTIN = 2;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
static const uint8_t _VBAT = 35; // battery voltage
#define PIN_WIRE_SDA SDA // backward compatibility
#define PIN_WIRE_SCL SCL // backward compatibility
static const uint8_t D0 = 26;
static const uint8_t D1 = 22;
static const uint8_t D2 = 21;
static const uint8_t D3 = 17;
static const uint8_t D4 = 16;
static const uint8_t D5 = 18;
static const uint8_t D6 = 19;
static const uint8_t D7 = 23;
static const uint8_t D8 = 5;
static const uint8_t RXD = 3;
static const uint8_t TXD = 1;
#define PIN_SPI_SS SS // backward compatibility
#define PIN_SPI_MOSI MOSI // backward compatibility
#define PIN_SPI_MISO MISO // backward compatibility
#define PIN_SPI_SCK SCK // backward compatibility
#define PIN_A0 A0 // backward compatibility
#endif /* Pins_Arduino_h */