Subversion Repositories ESP8266_P1_Meter

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 raymond 1
## ezButton Library for Arduino, ESP32, ESP8266...
2
This library is designed to make it easy to use push button, momentary switches, toggle switch, magnetic contact switch (door sensor)..​. It is easy to use for not only beginners but also experienced users.
3
 
4
__ezButton__ stands for __Easy Button__
5
 
6
Features
7
----------------------------
8
* Uses the internal pull-up resistor by default to avoid the floating value
9
* Supports debounce to eliminate the chattering phenomenon
10
* Supports the pressed and released events
11
* Supports the counting (for FALLING, RISING and BOTH)
12
* Easy to use with multiple buttons
13
* All functions are non-blocking 
14
* Support internal pull-up/pull-down, external pull-up/pull-down
15
 
16
Available Examples
17
----------------------------
18
* [01.SingleButton](https://arduinogetstarted.com/library/button/example/arduino-single-button)
19
* [02.SingleButtonEvents](https://arduinogetstarted.com/library/button/example/arduino-single-button-events)
20
* [03.SingleButtonDebounce](https://arduinogetstarted.com/library/button/example/arduino-single-button-debounce)
21
* [04.SingleButtonAll](https://arduinogetstarted.com/library/button/example/arduino-single-button-all)
22
* [05.MultipleButtonAll](https://arduinogetstarted.com/library/button/example/arduino-multiple-button-all)
23
* [06.ButtonCount](https://arduinogetstarted.com/library/button/example/arduino-button-count)
24
* [07.ButtonArray](https://arduinogetstarted.com/library/button/example/arduino-button-array)
25
 
26
 
27
Available Functions
28
----------------------------
29
* setDebounceTime()
30
* getState()
31
* getStateRaw()
32
* isPressed()
33
* isReleased()
34
* setCountMode()
35
* getCount()
36
* resetCount()
37
* loop()
38
 
39
References
40
----------------------------
41
* [ezButton Library Reference](https://arduinogetstarted.com/tutorials/arduino-button-library)