ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
InputDisabled.hpp
Go to the documentation of this file.
1#pragma once
2/*
3* InputDisabled.h - Do Nothing input driver
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 Input buffer into
20* pixel intensities and then transmits them through the configured serial
21* interface.
22*
23*/
24
25#include "InputCommon.hpp"
26
28{
29public:
30 // These functions are inherited from c_InputCommon
32 c_InputMgr::e_InputType NewChannelType,
33 uint32_t BufferSize);
34 virtual ~c_InputDisabled ();
35
36 // functions to be provided by the derived class
37 void Begin ();
38 bool SetConfig (JsonObject & jsonConfig);
39 void GetConfig (JsonObject & jsonConfig);
40 void GetStatus (JsonObject & jsonStatus);
41 void Process ();
42 void GetDriverName (String& sDriverName) { sDriverName = "Disabled"; }
43 void SetBufferInfo (uint32_t BufferSize) {}
44
45private:
46
47}; // c_InputDisabled
Definition InputCommon.hpp:27
Definition InputDisabled.hpp:28
void GetDriverName(String &sDriverName)
get the name for the instantiated driver
Definition InputDisabled.hpp:42
bool SetConfig(JsonObject &jsonConfig)
Set a new config in the driver.
Definition InputDisabled.cpp:76
void SetBufferInfo(uint32_t BufferSize)
Definition InputDisabled.hpp:43
c_InputDisabled(c_InputMgr::e_InputChannelIds NewInputChannelId, c_InputMgr::e_InputType NewChannelType, uint32_t BufferSize)
Definition InputDisabled.cpp:27
void GetConfig(JsonObject &jsonConfig)
Get the current config used by the driver.
Definition InputDisabled.cpp:86
virtual ~c_InputDisabled()
Definition InputDisabled.cpp:38
void Process()
Call from loop(), renders Input data.
Definition InputDisabled.cpp:95
void GetStatus(JsonObject &jsonStatus)
Definition InputDisabled.cpp:56
void Begin()
set up the operating environment based on the current config (or defaults)
Definition InputDisabled.cpp:47
e_InputType
Definition InputMgr.hpp:71
e_InputChannelIds
Definition InputMgr.hpp:40