This file contains an implementation of BasicIoAbstraction that works with the DfRobot shield in order to convert the analog keys into regular digital IO. This allows DfRobot to be used with switches for button management. More...
Go to the source code of this file.
Classes | |
struct | DfRobotAnalogRanges |
class | DfRobotInputAbstraction |
Functions | |
IoAbstractionRef | inputFromDfRobotShield (uint8_t pin=A0, AnalogDevice *device=nullptr) |
IoAbstractionRef | inputFromDfRobotShieldV1 (uint8_t pin=A0, AnalogDevice *device=nullptr) |
Variables | |
const PROGMEM DfRobotAnalogRanges | dfRobotAvrRanges { 0.0488F, 0.2441F, 0.4394F, 0.6347F, 0.8300F} |
const PROGMEM DfRobotAnalogRanges | dfRobotV1AvrRanges { 0.0488F, 0.1904F, 0.3710F, 0.5419F, 0.7714F} |
This file contains an implementation of BasicIoAbstraction that works with the DfRobot shield in order to convert the analog keys into regular digital IO. This allows DfRobot to be used with switches for button management.
|
inline |
pin | the analog pin |
device | the analog device, defaulted |
|
inline |
pin | the analog pin |
device | the analog device, defaulted |
const PROGMEM DfRobotAnalogRanges dfRobotAvrRanges { 0.0488F, 0.2441F, 0.4394F, 0.6347F, 0.8300F} |
Defines the analog ranges to pass to the DfRobotInputAbstraction - default
const PROGMEM DfRobotAnalogRanges dfRobotV1AvrRanges { 0.0488F, 0.1904F, 0.3710F, 0.5419F, 0.7714F} |
Defines the analog ranges to pass to the DfRobotInputAbstraction - for V1.0 of the board