Add libraries dir

This commit is contained in:
2022-03-12 03:50:28 +08:00
parent 816f0bb3a5
commit 7572125fcb
256 changed files with 41193 additions and 0 deletions
@@ -0,0 +1,27 @@
// ловим степ с накликиванием
#define BTN_PIN 0 // кнопка подключена сюда (BTN_PIN --- КНОПКА --- GND)
#include "GyverButton.h"
GButton butt1(BTN_PIN);
void setup() {
Serial.begin(9600);
}
void loop() {
butt1.tick();
// удержание
if (butt1.isStep()) {
Serial.println("0x");
}
// один клик + удержание
if (butt1.isStep(1)) {
Serial.println("1x");
}
// два клика + удержание
if (butt1.isStep(2)) {
Serial.println("2x");
}
}