Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
pins_arduino.h
Go to the documentation of this file.
1#ifndef Pins_Arduino_h
2#define Pins_Arduino_h
3
4#include <stdint.h>
5
6#define USB_MANUFACTURER "DPI Climate"
7#define USB_PRODUCT "DPI Climate ESP32 Wombat"
8#define USB_SERIAL ""
9
10#define EXTERNAL_NUM_INTERRUPTS 46
11#define NUM_DIGITAL_PINS 48
12#define NUM_ANALOG_INPUTS 20
13
14#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
15#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
16#define digitalPinHasPWM(p) (p < 46)
17
18// 0x81 means P1 on the IO expander IC. 0x81 for newer boards, 0x84 for the original test boards.
19static const uint8_t LED_BUILTIN = 0x81;
20#define BUILTIN_LED LED_BUILTIN // backward compatibility
21
22static const uint8_t TX = 34;
23static const uint8_t RX = 33;
24
25#define TX1 GPIO_NUM_26
26#define RX1 GPIO_NUM_22
27
28static const uint8_t SDA = 37;
29static const uint8_t SCL = 10;
30
31static const uint8_t MOSI = 18;
32static const uint8_t MISO = 19;
33static const uint8_t SCK = 5;
34static const uint8_t SS = 4;
35
36static const uint8_t SDI_12 = 4;
37static const uint8_t PIEZO = 28;
38
39#endif /* Pins_Arduino_h */
static const uint8_t MISO
Definition: pins_arduino.h:32
static const uint8_t MOSI
Definition: pins_arduino.h:31
static const uint8_t PIEZO
Definition: pins_arduino.h:37
static const uint8_t SCK
Definition: pins_arduino.h:33
static const uint8_t RX
Definition: pins_arduino.h:23
static const uint8_t LED_BUILTIN
Definition: pins_arduino.h:19
static const uint8_t TX
Definition: pins_arduino.h:22
static const uint8_t SDA
Definition: pins_arduino.h:28
static const uint8_t SCL
Definition: pins_arduino.h:29
static const uint8_t SDI_12
Definition: pins_arduino.h:36
static const uint8_t SS
Definition: pins_arduino.h:34