5502879a5b
This is very much still work in progress and much more will change before the final 2.0.0 Some APIs have changed. New libraries have been added. LittleFS included. Co-authored-by: Seon Rozenblum <seonr@3sprockets.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> Co-authored-by: geeksville <kevinh@geeksville.com> Co-authored-by: Mike Dunston <m_dunston@comcast.net> Co-authored-by: Unexpected Maker <seon@unexpectedmaker.com> Co-authored-by: Seon Rozenblum <seonr@3sprockets.com> Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com> Co-authored-by: tobozo <tobozo@users.noreply.github.com> Co-authored-by: bobobo1618 <bobobo1618@users.noreply.github.com> Co-authored-by: lorol <lorolouis@gmail.com> Co-authored-by: geeksville <kevinh@geeksville.com> Co-authored-by: Limor "Ladyada" Fried <limor@ladyada.net> Co-authored-by: Sweety <switi.mhaiske@espressif.com> Co-authored-by: Loick MAHIEUX <loick111@gmail.com> Co-authored-by: Larry Bernstone <lbernstone@gmail.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: 快乐的我531 <2302004040@qq.com> Co-authored-by: chegewara <imperiaonline4@gmail.com> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Aron Rubin <aronrubin@gmail.com> Co-authored-by: Pete Lewis <601236+lewispg228@users.noreply.github.com>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
|
|
#define EXTERNAL_NUM_INTERRUPTS 16
|
|
#define NUM_DIGITAL_PINS 20
|
|
#define NUM_ANALOG_INPUTS 16
|
|
|
|
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
|
|
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
|
#define digitalPinHasPWM(p) (p < 34)
|
|
|
|
// touch screen
|
|
#define TP_SDA 23
|
|
#define TP_SCL 32
|
|
#define TP_INT 38
|
|
|
|
// Interrupt IO port
|
|
#define RTC_INT 37
|
|
#define APX20X_INT 35
|
|
#define BMA42X_INT1 39
|
|
|
|
static const uint8_t TX = 1;
|
|
static const uint8_t RX = 3;
|
|
|
|
//Serial1 Already assigned to GPS LORA
|
|
#define TX1 33
|
|
#define RX1 34
|
|
|
|
// Already assigned to BMA423 PCF8563 and external extensions
|
|
static const uint8_t SDA = 21;
|
|
static const uint8_t SCL = 22;
|
|
// SPI has been configured as an SD card slot and must be removed when downloading
|
|
static const uint8_t SS = 13;
|
|
static const uint8_t MOSI = 15;
|
|
static const uint8_t MISO = 2;
|
|
static const uint8_t SCK = 14;
|
|
// Externally programmable IO
|
|
static const uint8_t DAC1 = 25;
|
|
static const uint8_t DAC2 = 26;
|
|
|
|
#endif /* Pins_Arduino_h */
|