ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
OutputMgrPortDefs.hpp
Go to the documentation of this file.
1#pragma once
2/*
3* OutputMgrPortDefs.hpp - Output Management class
4*
5* Project: ESPixelStick - An ESP8266 / ESP32 and E1.31 based pixel driver
6* Copyright (c) 2026 Shelby Merrick
7* http://www.forkineye.com
8*
9* This program is provided free for you to use in any way that you wish,
10* subject to the laws and regulations where you are using it. Due diligence
11* is strongly suggested before using this code. Please give credit where due.
12*
13* The Author makes no warranty of any kind, express or implied, with regard
14* to this program or the documentation contained in this document. The
15* Author shall not be liable in any event for incidental or consequential
16* damages in connection with, or arising out of, the furnishing, performance
17* or use of these programs.
18*
19*/
20
21#include "ESPixelStick.h"
22
23#ifdef ARDUINO_ARCH_ESP8266
24typedef enum
25{
26 GPIO_NUM_0 = 0,
27 GPIO_NUM_1,
28 GPIO_NUM_2,
29 GPIO_NUM_3,
30 GPIO_NUM_4,
31 GPIO_NUM_5,
32 GPIO_NUM_6,
33 GPIO_NUM_7,
34 GPIO_NUM_8,
35 GPIO_NUM_9,
36 GPIO_NUM_10,
37 GPIO_NUM_11,
38 GPIO_NUM_12,
39 GPIO_NUM_13,
40 GPIO_NUM_14,
41 GPIO_NUM_15,
42 GPIO_NUM_16,
43 GPIO_NUM_17,
44 GPIO_NUM_18,
45 GPIO_NUM_19,
46 GPIO_NUM_20,
47 GPIO_NUM_21,
48 GPIO_NUM_22,
49 GPIO_NUM_23,
50 GPIO_NUM_24,
51 GPIO_NUM_25,
52 GPIO_NUM_26,
53 GPIO_NUM_27,
54 GPIO_NUM_28,
55 GPIO_NUM_29,
56 GPIO_NUM_30,
57 GPIO_NUM_31,
58 GPIO_NUM_32,
59 GPIO_NUM_33,
60 GPIO_NUM_34,
61} gpio_num_t;
62
63typedef enum
64{
65 UART_NUM_0 = 0,
66 UART_NUM_1,
67 UART_NUM_2
68} uart_port_t;
69#endif // def ARDUINO_ARCH_ESP8266
70
71typedef uint8_t OM_PortId_t; // zero based port ID
72
74{
75 OM_SERIAL, // WS2811 rtc
76 OM_RELAY, // Relay output
77 OM_SPI, // WS2801 etc
78 OM_I2C, // PCA Relay board etc
79 OM_ANY // used by the disabled protocol
80};
81
83{
84 gpio_num_t data; // mosi / SDA
85 gpio_num_t clk; // SCL
86 gpio_num_t cs;
87};
88
OM_PortType_t
Definition OutputMgrPortDefs.hpp:74
@ OM_ANY
Definition OutputMgrPortDefs.hpp:79
@ OM_I2C
Definition OutputMgrPortDefs.hpp:78
@ OM_SERIAL
Definition OutputMgrPortDefs.hpp:75
@ OM_SPI
Definition OutputMgrPortDefs.hpp:77
@ OM_RELAY
Definition OutputMgrPortDefs.hpp:76
uint8_t OM_PortId_t
Definition OutputMgrPortDefs.hpp:71
Definition OutputMgrPortDefs.hpp:83
gpio_num_t cs
Definition OutputMgrPortDefs.hpp:86
gpio_num_t clk
Definition OutputMgrPortDefs.hpp:85
gpio_num_t data
Definition OutputMgrPortDefs.hpp:84
Definition OutputMgrPortDefs.hpp:90
OM_GPIOS_t gpios
Definition OutputMgrPortDefs.hpp:93
OM_PortType_t PortType
Definition OutputMgrPortDefs.hpp:92
OM_PortId_t PortId
Definition OutputMgrPortDefs.hpp:91
uint8_t DeviceId
Definition OutputMgrPortDefs.hpp:94