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, 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
28{
29public:
30 // These functions are inherited from c_OutputCommon
32 gpio_num_t outputGpio,
33 uart_port_t uart,
34 c_OutputMgr::e_OutputType outputType);
35 virtual ~c_OutputDisabled ();
36
37 // functions to be provided by the derived class
38 void Begin ();
39 bool SetConfig (ArduinoJson::JsonObject & jsonConfig);
40 void GetConfig (ArduinoJson::JsonObject & jsonConfig);
41 void GetStatus (ArduinoJson::JsonObject & jsonConfig) {}
42 uint32_t Poll ();
43#ifdef ARDUINO_ARCH_ESP32
44 bool RmtPoll () {return false;}
45#endif // def ARDUINO_ARCH_ESP32
46 void GetDriverName (String & sDriverName) { sDriverName = CN_Disabled; }
47 uint32_t GetNumOutputBufferBytesNeeded () { return 0; }
48 uint32_t GetNumOutputBufferChannelsServiced () { return 0; }
49
50private:
51
52}; // c_OutputDisabled
const CN_PROGMEM char CN_Disabled[]
Definition ConstNames.cpp:65
Definition OutputCommon.hpp:31
OID_t OutputChannelId
Definition OutputCommon.hpp:76
Definition OutputDisabled.hpp:28
uint32_t GetNumOutputBufferChannelsServiced()
Definition OutputDisabled.hpp:48
c_OutputDisabled(c_OutputMgr::e_OutputChannelIds OutputChannelId, gpio_num_t outputGpio, uart_port_t uart, c_OutputMgr::e_OutputType outputType)
Definition OutputDisabled.cpp:28
virtual ~c_OutputDisabled()
Definition OutputDisabled.cpp:40
void GetStatus(ArduinoJson::JsonObject &jsonConfig)
Definition OutputDisabled.hpp:41
void Begin()
set up the operating environment based on the current config (or defaults)
Definition OutputDisabled.cpp:49
uint32_t Poll()
Call from loop(), renders output data.
Definition OutputDisabled.cpp:84
uint32_t GetNumOutputBufferBytesNeeded()
Definition OutputDisabled.hpp:47
bool SetConfig(ArduinoJson::JsonObject &jsonConfig)
Set a new config in the driver.
Definition OutputDisabled.cpp:66
void GetDriverName(String &sDriverName)
get the name for the instantiated driver
Definition OutputDisabled.hpp:46
void GetConfig(ArduinoJson::JsonObject &jsonConfig)
Get the current config used by the driver.
Definition OutputDisabled.cpp:76
e_OutputChannelIds
Definition OutputMgr.hpp:67
e_OutputType
Definition OutputMgr.hpp:126