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
27
class
c_InputDisabled
:
public
c_InputCommon
28
{
29
public
:
30
// These functions are inherited from c_InputCommon
31
c_InputDisabled
(
c_InputMgr::e_InputChannelIds
NewInputChannelId,
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
45
private
:
46
47
};
// c_InputDisabled
InputCommon.hpp
c_InputCommon
Definition
InputCommon.hpp:27
c_InputDisabled
Definition
InputDisabled.hpp:28
c_InputDisabled::GetDriverName
void GetDriverName(String &sDriverName)
get the name for the instantiated driver
Definition
InputDisabled.hpp:42
c_InputDisabled::SetConfig
bool SetConfig(JsonObject &jsonConfig)
Set a new config in the driver.
Definition
InputDisabled.cpp:76
c_InputDisabled::SetBufferInfo
void SetBufferInfo(uint32_t BufferSize)
Definition
InputDisabled.hpp:43
c_InputDisabled::c_InputDisabled
c_InputDisabled(c_InputMgr::e_InputChannelIds NewInputChannelId, c_InputMgr::e_InputType NewChannelType, uint32_t BufferSize)
Definition
InputDisabled.cpp:27
c_InputDisabled::GetConfig
void GetConfig(JsonObject &jsonConfig)
Get the current config used by the driver.
Definition
InputDisabled.cpp:86
c_InputDisabled::~c_InputDisabled
virtual ~c_InputDisabled()
Definition
InputDisabled.cpp:38
c_InputDisabled::Process
void Process()
Call from loop(), renders Input data.
Definition
InputDisabled.cpp:95
c_InputDisabled::GetStatus
void GetStatus(JsonObject &jsonStatus)
Definition
InputDisabled.cpp:56
c_InputDisabled::Begin
void Begin()
set up the operating environment based on the current config (or defaults)
Definition
InputDisabled.cpp:47
c_InputMgr::e_InputType
e_InputType
Definition
InputMgr.hpp:71
c_InputMgr::e_InputChannelIds
e_InputChannelIds
Definition
InputMgr.hpp:40
include
input
InputDisabled.hpp
Generated by
1.12.0