forked from Akcelerometry_drgania_WMT/PI_mikrokontroler
Naprawa isPressed() - dodanie wykrywania zbocza opadajacego, co rozwiazuje problem wielokrotnego wyzwalania akcji przy przytrzymaniu
This commit is contained in:
@@ -47,6 +47,10 @@ private:
|
||||
void constrainValue(int &value, int minVal, int maxVal);
|
||||
void printField(const char *label, int value);
|
||||
|
||||
bool lastState1_ = true;
|
||||
bool lastState2_ = true;
|
||||
bool lastState3_ = true;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user