arduino-esp32/variants/d32_pro/pins_arduino.h
Jan Procházka 8510734d83
Add default SPI pin definitions if not defined in pins_arduino.h (#7161)
* add default SPI pins ifndef in arduino_pins.h

* Revert "add default SPI pins ifndef in arduino_pins.h"

This reverts commit be35b83ab997a88242269621cccbe1d17a0a844f.

* Add missing default SPI pins

* revert change for d32_pro
2022-09-14 11:29:12 +03:00

21 lines
571 B
C

#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#include <../d32/d32_core.h>
static const uint8_t LED_BUILTIN = 5;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN
static const uint8_t _VBAT = 35; // battery voltage
#define TF_CS 4 // TF (Micro SD Card) CS pin
#define TS_CS 12 // Touch Screen CS pin
#define TFT_CS 14 // TFT CS pin
#define TFT_LED 32 // TFT backlight control pin
#define TFT_RST 33 // TFT reset pin
#define TFT_DC 27 // TFT DC pin
#define SS TF_CS
#endif /* Pins_Arduino_h */