mirror of
https://github.com/anklimov/lighthub
synced 2026-01-26 16:19:07 +03:00
compilation fix for slim options
This commit is contained in:
@@ -1110,6 +1110,7 @@ uint8_t readCache::digitalReadCached(uint8_t _pin)
|
|||||||
///TBD
|
///TBD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MCP23017
|
||||||
uint8_t readCache::I2CReadBit(uint8_t _type, uint8_t _addr, uint8_t _pin)
|
uint8_t readCache::I2CReadBit(uint8_t _type, uint8_t _addr, uint8_t _pin)
|
||||||
{
|
{
|
||||||
if (addr!=_addr || type != _type)
|
if (addr!=_addr || type != _type)
|
||||||
@@ -1120,6 +1121,7 @@ if (addr!=_addr || type != _type)
|
|||||||
}
|
}
|
||||||
return (cached_data >> _pin ) & 0x1;
|
return (cached_data >> _pin ) & 0x1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void readCache::invalidateInputCache()
|
void readCache::invalidateInputCache()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -189,7 +189,9 @@ public:
|
|||||||
readCache();
|
readCache();
|
||||||
uint16_t analogReadCached (uint8_t pin);
|
uint16_t analogReadCached (uint8_t pin);
|
||||||
uint8_t digitalReadCached(uint8_t pin);
|
uint8_t digitalReadCached(uint8_t pin);
|
||||||
|
#ifdef MCP23017
|
||||||
uint8_t I2CReadBit(uint8_t type, uint8_t addr, uint8_t pin);
|
uint8_t I2CReadBit(uint8_t type, uint8_t addr, uint8_t pin);
|
||||||
|
#endif
|
||||||
void invalidateInputCache();
|
void invalidateInputCache();
|
||||||
protected:
|
protected:
|
||||||
uint8_t addr;
|
uint8_t addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user