 |
LightHub
|
Go to the documentation of this file.
24 #define IN_ACTIVE_HIGH 2 // High level = PUSHED/ CLOSED/ ON othervise :Low Level. Use INPUT mode instead of INPUT_PULLUP for digital pin
25 #define IN_ANALOG 64 // Analog input
26 #define IN_RE 32 // Rotary Encoder (for further use)
27 #define IN_I2C 128 // MCP23017
29 #define IN_PUSH_ON 0 // PUSH - ON, Release - OFF (ovverrided by pcmd/rcmd) - DEFAULT
30 #define IN_PUSH_TOGGLE 1 // Used for push buttons. Every physicall push toggle logical switch on/off. Toggle on leading edge
44 #define IS_WAITPRESS 5
46 #define IS_RELEASED2 7
49 #define IS_PRESSED3 10u
51 #define IS_REPEAT3 12u
52 #define IS_WAITRELEASE 13u
53 #define IS_REQSTATE 0xFF
57 #define SAME_STATE_ATTEMPTS 3
58 #define ANALOG_STATE_ATTEMPTS 6
59 #define ANALOG_NOIZE 1
61 #define CHECK_SENSOR 1
63 #define CHECK_INTERRUPT 3
69 #define T_RPT_PULSE 150
103 extern aJsonObject *
inputs;
138 Input(aJsonObject *obj, aJsonObject * configObj = NULL);
146 int Poll(
short cause);
160 void Parse(aJsonObject * configObj = NULL);
193 uint8_t I2CReadBit(uint8_t
type, uint8_t
addr, uint8_t pin);
uint8_t toggle1
Definition: inputs.h:117
uint16_t cached_data
Definition: inputs.h:199
uint32_t timestamp
Definition: inputs.h:108
uint8_t bounce
Definition: inputs.h:122
uint8_t reqState
Definition: inputs.h:124
readCache()
Definition: inputs.cpp:1095
uint8_t type
Definition: inputs.h:198
uint8_t toggle3
Definition: inputs.h:119
uint8_t addr
Definition: inputs.h:197
uint8_t state
Definition: inputs.h:123
uint16_t timestamp16
Definition: inputs.h:125
int16_t currentValue
Definition: inputs.h:113
uint8_t reserved
Definition: inputs.h:111
uint8_t logicState
Definition: inputs.h:112
uint8_t delayedState
Definition: inputs.h:121
uint16_t analogReadCached(uint8_t pin)
Definition: inputs.cpp:1101
uint8_t lastValue
Definition: inputs.h:120
uint8_t toggle2
Definition: inputs.h:118
long int aslong
Definition: inputs.h:107
uint8_t digitalReadCached(uint8_t pin)
Definition: inputs.cpp:1110
void invalidateInputCache()
Definition: inputs.cpp:1128