STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
stacklight_pins.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * Stacklight Driver PCB — GPIO assignments.
5 *
6 * Stack segments and buzzer drive external loads that turn ON when the GPIO is
7 * pulled LOW (active-low). Initialize as OUTPUT HIGH (all off).
8 */
9
10namespace stacklight_pins {
11
12// Stacklight outputs (active-low: ON = LOW, OFF = HIGH)
13constexpr int PIN_YELLOW = 10; // ORNG
14constexpr int PIN_RED = 11;
15constexpr int PIN_GREEN = 18;
16constexpr int PIN_BUZZ = 19;
17
18// W5500 / Ethernet SPI (same usage as other DAQv2 boards)
19constexpr int ETH_CS = 15;
20constexpr int ETH_MOSI = 16;
21constexpr int ETH_SCLK = 17;
22constexpr int ETH_MISO = 3;
23constexpr int ETH_INT = 23;
24constexpr int ETH_RST = 2;
25
26// Extra drivers — unused for now; keep defined and idle HIGH
27constexpr int PIN_EX1 = 20;
28constexpr int PIN_EX2 = 21;
29constexpr int PIN_EX3 = 22;
30
31} // namespace stacklight_pins
Stacklight Driver PCB — GPIO assignments.
constexpr int ETH_CS
constexpr int PIN_BUZZ
constexpr int ETH_INT
constexpr int ETH_MOSI
constexpr int PIN_EX2
constexpr int PIN_RED
constexpr int ETH_SCLK
constexpr int PIN_GREEN
constexpr int ETH_RST
constexpr int PIN_EX1
constexpr int ETH_MISO
constexpr int PIN_YELLOW
constexpr int PIN_EX3