Merge branch 'fix/issue-5-hs-s43a-s3r-cleanup'
This commit is contained in:
commit
109088cf52
13 changed files with 511 additions and 48 deletions
|
|
@ -217,8 +217,8 @@ void setup() {
|
|||
|
||||
allProvisioned = keyProvisioned && uuidProvisioned && serverProvisioned;
|
||||
|
||||
pinMode(TOUCH1_PIN, INPUT_PULLUP);
|
||||
pinMode(TOUCH2_PIN, INPUT_PULLUP);
|
||||
pinMode(TOUCH1_PIN, INPUT);
|
||||
pinMode(TOUCH2_PIN, INPUT);
|
||||
pinMode(BUTTON_PIN, INPUT);
|
||||
|
||||
if (allProvisioned) {
|
||||
|
|
@ -346,8 +346,8 @@ void loop() {
|
|||
static uint32_t t1Change = 0;
|
||||
static uint32_t t2Change = 0;
|
||||
static uint32_t btnChange = 0;
|
||||
bool t1Raw = (digitalRead(TOUCH1_PIN) == LOW);
|
||||
bool t2Raw = (digitalRead(TOUCH2_PIN) == LOW);
|
||||
bool t1Raw = (digitalRead(TOUCH1_PIN) == HIGH);
|
||||
bool t2Raw = (digitalRead(TOUCH2_PIN) == HIGH);
|
||||
bool btnRaw = (digitalRead(BUTTON_PIN) == LOW);
|
||||
if (t1Raw != t1Stable) { t1Change = millis(); t1Stable = t1Raw; }
|
||||
if (t2Raw != t2Stable) { t2Change = millis(); t2Stable = t2Raw; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue