ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
OutputGECERmt.hpp
Go to the documentation of this file.
1
#pragma once
2
/*
3
* OutputGECERmt.h - GECE driver code for ESPixelStick RMT Channel
4
*
5
* Project: ESPixelStick - An ESP8266 / ESP32 and E1.31 based pixel driver
6
* Copyright (c) 2015, 2025 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
* This is a derived class that converts data in the output buffer into
20
* pixel intensities and then transmits them through the configured serial
21
* interface.
22
*
23
*/
24
#include "
ESPixelStick.h
"
25
#if defined(SUPPORT_OutputType_GECE) && defined(ARDUINO_ARCH_ESP32)
26
27
#include "
OutputGECE.hpp
"
28
#include "
OutputRmt.hpp
"
29
30
class
c_OutputGECERmt :
public
c_OutputGECE
31
{
32
public
:
33
// These functions are inherited from c_OutputCommon
34
c_OutputGECERmt (
c_OutputMgr::e_OutputChannelIds
OutputChannelId,
35
gpio_num_t outputGpio,
36
uart_port_t uart,
37
c_OutputMgr::e_OutputType
outputType);
38
virtual
~c_OutputGECERmt ();
39
40
// functions to be provided by the derived class
41
void
Begin ();
42
bool
SetConfig
(ArduinoJson::JsonObject& jsonConfig);
43
uint32_t Poll ();
44
#if defined(ARDUINO_ARCH_ESP32)
45
bool
RmtPoll ();
46
#endif
// defined(ARDUINO_ARCH_ESP32)
47
void
GetStatus (ArduinoJson::JsonObject& jsonStatus);
48
void
SetOutputBufferSize (uint32_t NumChannelsAvailable);
49
void
PauseOutput (
bool
State);
50
51
private
:
52
53
c_OutputRmt Rmt;
54
55
};
// c_OutputGECERmt
56
57
#endif
// defined(SUPPORT_OutputType_GECE) && defined(ARDUINO_ARCH_ESP32)
ESPixelStick.h
OutputGECE.hpp
OutputRmt.hpp
c_OutputMgr::e_OutputChannelIds
e_OutputChannelIds
Definition
OutputMgr.hpp:67
c_OutputMgr::e_OutputType
e_OutputType
Definition
OutputMgr.hpp:126
SetConfig
void SetConfig(const char *DataString)
Definition
main.cpp:286
include
output
OutputGECERmt.hpp
Generated by
1.12.0