ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
OutputDisabled.hpp
Go to the documentation of this file.
1#pragma once
2/*
3* OutputDisabled.h - WS2811 driver code for ESPixelStick
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
25#include "OutputCommon.hpp"
26
28{
29public:
30 // These functions are inherited from c_OutputCommon
33 virtual ~c_OutputDisabled ();
34
35 // functions to be provided by the derived class
36 void Begin ();
37 bool SetConfig (ArduinoJson::JsonObject & jsonConfig);
38 void GetConfig (ArduinoJson::JsonObject & jsonConfig);
39 void GetStatus (ArduinoJson::JsonObject & jsonConfig);
40 uint32_t Poll ();
41#ifdef ARDUINO_ARCH_ESP32
42 bool RmtPoll () {return false;}
43#endif // def ARDUINO_ARCH_ESP32
44 void GetDriverName (String & sDriverName) { sDriverName = CN_Disabled; }
45 uint32_t GetNumOutputBufferBytesNeeded () { return 0; }
46 uint32_t GetNumOutputBufferChannelsServiced () { return 0; }
47
48private:
49
50}; // c_OutputDisabled
const CN_PROGMEM char CN_Disabled[]
Definition ConstNames.cpp:66
Definition OutputCommon.hpp:32
OM_OutputPortDefinition_t OutputPortDefinition
Definition OutputCommon.hpp:71
Definition OutputDisabled.hpp:28
c_OutputDisabled(OM_OutputPortDefinition_t &OutputPortDefinition, c_OutputMgr::e_OutputProtocolType outputType)
Definition OutputDisabled.cpp:28
uint32_t GetNumOutputBufferChannelsServiced()
Definition OutputDisabled.hpp:46
virtual ~c_OutputDisabled()
Definition OutputDisabled.cpp:38
void GetStatus(ArduinoJson::JsonObject &jsonConfig)
Definition OutputDisabled.cpp:92
void Begin()
set up the operating environment based on the current config (or defaults)
Definition OutputDisabled.cpp:47
uint32_t Poll()
Call from loop(), renders output data.
Definition OutputDisabled.cpp:83
uint32_t GetNumOutputBufferBytesNeeded()
Definition OutputDisabled.hpp:45
bool SetConfig(ArduinoJson::JsonObject &jsonConfig)
Set a new config in the driver.
Definition OutputDisabled.cpp:64
void GetDriverName(String &sDriverName)
get the name for the instantiated driver
Definition OutputDisabled.hpp:44
void GetConfig(ArduinoJson::JsonObject &jsonConfig)
Get the current config used by the driver.
Definition OutputDisabled.cpp:74
e_OutputProtocolType
Definition OutputMgr.hpp:78
Definition OutputMgrPortDefs.hpp:90