SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
pinout.h File Reference
#include <pt.h>

Go to the source code of this file.

Enumerations

enum  pinout {
  EN_3v3 = 5, EN_5v = 6, SD_CS = 10, HEATER = 11,
  ALARM_PIN = 12, STATUS_LED = 13, I2C_SDA = 20, I2C_SCL = 21,
  SPI_SCK = 24, SPI_MOSI = 23, SPI_MISO = 22, TX = 1,
  RX = 0, UPPER_CS = 19, LOWER_CS = 18, HEATER_CS = 17,
  RFM95_CS = 8, RFM95_RST = 4, RFM95_INT = 3
}
 Pin definitions for our project. More...
 

Enumeration Type Documentation

◆ pinout

enum pinout

Pin definitions for our project.

This enum defines the board pinout. It is similar to using DEFINE, but has the added benefit of preventing address conflicts.

Enumerator
EN_3v3 

Control pin for 3.3V power rail. Output, Active-low.

EN_5v 

Control pin for 5v Power rail. Output, Active-high.

SD_CS 

SPI chip select for SD card. Output, Active-low.

HEATER 

Control pin for heater switch. Output, Active-high.

ALARM_PIN 

Interrupt pin from RTC. Pull-up, Active-low.

STATUS_LED 

Built-in LED on feather. Active-high.

I2C_SDA 

I2C data pin. Pull-up.

I2C_SCL 

I2C clock pin. Pull-up.

SPI_SCK 

SPI clock pin. Output.

SPI_MOSI 

SPI data pin. Output.

SPI_MISO 

SPI data pin. Input.

TX 

Serial1 transmit, used for RS232. Output.

RX 

Serial1 receive, used for RS232. Input.

UPPER_CS 

Upper RTD amplifier chip select. Output.

LOWER_CS 

Lower RTD amplifier chip select. Output.

HEATER_CS 

Heater RTD amplifier chip select. Output.

RFM95_CS 

SPI chip select used for LoRa. Output, Active-low.

RFM95_RST 

Reset pin used for LoRa. Output. Active-low?

RFM95_INT 

Interrupt pin used for LoRa. Input. Active-low?

Definition at line 11 of file pinout.h.

11  {
12  EN_3v3 = 5,
13  EN_5v = 6,
14  SD_CS = 10,
15  HEATER = 11,
16  ALARM_PIN = 12,
17  STATUS_LED = 13,
18  I2C_SDA = 20,
19  I2C_SCL = 21,
20  SPI_SCK = 24,
21  SPI_MOSI = 23,
22  SPI_MISO = 22,
23  TX = 1,
24  RX = 0,
25  UPPER_CS = 19,
26  LOWER_CS = 18,
27  HEATER_CS = 17,
28  RFM95_CS = 8,
29  RFM95_RST = 4,
30  RFM95_INT = 3,
31 };
I2C_SCL
@ I2C_SCL
I2C clock pin. Pull-up.
Definition: pinout.h:19
EN_5v
@ EN_5v
Control pin for 5v Power rail. Output, Active-high.
Definition: pinout.h:13
STATUS_LED
@ STATUS_LED
Built-in LED on feather. Active-high.
Definition: pinout.h:17
EN_3v3
@ EN_3v3
Control pin for 3.3V power rail. Output, Active-low.
Definition: pinout.h:12
SPI_MOSI
@ SPI_MOSI
SPI data pin. Output.
Definition: pinout.h:21
HEATER_CS
@ HEATER_CS
Heater RTD amplifier chip select. Output.
Definition: pinout.h:27
RFM95_RST
@ RFM95_RST
Reset pin used for LoRa. Output. Active-low?
Definition: pinout.h:29
HEATER
@ HEATER
Control pin for heater switch. Output, Active-high.
Definition: pinout.h:15
RFM95_CS
@ RFM95_CS
SPI chip select used for LoRa. Output, Active-low.
Definition: pinout.h:28
SPI_MISO
@ SPI_MISO
SPI data pin. Input.
Definition: pinout.h:22
UPPER_CS
@ UPPER_CS
Upper RTD amplifier chip select. Output.
Definition: pinout.h:25
RFM95_INT
@ RFM95_INT
Interrupt pin used for LoRa. Input. Active-low?
Definition: pinout.h:30
LOWER_CS
@ LOWER_CS
Lower RTD amplifier chip select. Output.
Definition: pinout.h:26
I2C_SDA
@ I2C_SDA
I2C data pin. Pull-up.
Definition: pinout.h:18
RX
@ RX
Serial1 receive, used for RS232. Input.
Definition: pinout.h:24
SPI_SCK
@ SPI_SCK
SPI clock pin. Output.
Definition: pinout.h:20
TX
@ TX
Serial1 transmit, used for RS232. Output.
Definition: pinout.h:23
ALARM_PIN
@ ALARM_PIN
Interrupt pin from RTC. Pull-up, Active-low.
Definition: pinout.h:16
SD_CS
@ SD_CS
SPI chip select for SD card. Output, Active-low.
Definition: pinout.h:14