|
RSeries astromech firmware
|
|
Go to the documentation of this file. 1 #ifndef ResistorLadderButtons_h
2 #define ResistorLadderButtons_h
20 template <
byte kButtonPin,
unsigned int... buttonVal>
26 pinMode(kButtonPin, INPUT);
37 uint32_t timeNow = millis();
38 unsigned buttonValue = analogRead(kButtonPin);
83 static constexpr
unsigned int kButtonValues[] = { buttonVal... };
92 static bool inRange(
int val,
int minimum,
int maximum)
94 return ((minimum <= val) && (val <= maximum));
#define DEBUG_PRINT(s)
Definition: ReelTwo.h:189
Base class for all animated devices. AnimatedEvent::animate() is called for each device once through ...
Definition: AnimatedEvent.h:18
Base class for all devices that require setup that cannot happen in the constructor....
Definition: SetupEvent.h:15
#define DEBUG_PRINTLN(s)
Definition: ReelTwo.h:188