ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
OutputGS8208Uart.hpp
Go to the documentation of this file.
1
#pragma once
2
/*
3
* OutputGS8208Uart.h - GS8208 driver code for ESPixelStick UART
4
*
5
* Project: ESPixelStick - An ESP8266 / ESP32 and E1.31 based pixel driver
6
* Copyright (c) 2015, 2022 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
25
#include "
OutputCommon.hpp
"
26
27
#if defined(SUPPORT_OutputProtocol_GS8208) && defined(SUPPORT_UART)
28
29
#include "
OutputGS8208.hpp
"
30
#include "
OutputUart.hpp
"
31
32
class
c_OutputGS8208Uart :
public
c_OutputGS8208
33
{
34
public
:
35
// These functions are inherited from c_OutputCommon
36
c_OutputGS8208Uart (
OM_OutputPortDefinition_t
& OutputPortDefinition,
37
c_OutputMgr::e_OutputProtocolType
outputType);
38
virtual
~c_OutputGS8208Uart ();
39
40
// functions to be provided by the derived class
41
void
Begin ();
42
uint32_t Poll ();
43
void
PauseOutput (
bool
State);
44
bool
SetConfig
(ArduinoJson::JsonObject& jsonConfig);
45
void
GetConfig
(ArduinoJson::JsonObject& jsonConfig);
46
void
GetStatus (ArduinoJson::JsonObject& jsonStatus);
47
48
#define GS8208_NUM_DATA_BYTES_PER_INTENSITY_BYTE 4
49
50
private
:
51
c_OutputUart Uart;
52
53
};
// c_OutputGS8208Uart
54
55
#endif
// defined(SUPPORT_OutputProtocol_GS8208) && defined(SUPPORT_UART)
OutputCommon.hpp
OutputGS8208.hpp
OutputUart.hpp
c_OutputMgr::e_OutputProtocolType
e_OutputProtocolType
Definition
OutputMgr.hpp:87
GetConfig
void GetConfig(JsonObject &json)
Definition
main.cpp:507
SetConfig
void SetConfig(const char *DataString)
Definition
main.cpp:329
OM_OutputPortDefinition_t
Definition
OutputMgrPortDefs.hpp:90
include
output
OutputGS8208Uart.hpp
Generated by
1.12.0