|
| 1 | +## LED Library for Arduino - ezLED |
| 2 | +This library is designed for Arduino, ESP32, ESP8266... to control LED: on, off, toggle, fade in/out, blink, blink the number of times, blink in a period of time. It is designed for not only beginners but also experienced users. |
| 3 | + |
| 4 | +**ezLED** stands for **easy LED**, which mean that the library is easy to use. |
| 5 | + |
| 6 | +Features |
| 7 | +---------------------------- |
| 8 | +* Turn on/off |
| 9 | +* Toggle between on and off |
| 10 | +* Fade in/out |
| 11 | +* Blink |
| 12 | +* Blink with the number of times |
| 13 | +* Blink in a period of time |
| 14 | +* Cancel the blinking or fading anytime |
| 15 | +* Support both control modes: CTRL_ANODE and CTRL_CATHODE |
| 16 | +* Get the on/off LED's states: LED_OFF, LED_ON |
| 17 | +* Get the operation LED's state: LED_IDLE, LED_DELAY, LED_FADING, LED_BLINKING |
| 18 | +* All functions are non-blocking (without using delay() function) |
| 19 | +* Easy to use with multiple LEDs |
| 20 | + |
| 21 | +Available Functions |
| 22 | +---------------------------- |
| 23 | +* ezLED(int pin) |
| 24 | +* ezLED(int pin, int mode) |
| 25 | +* void turnON() |
| 26 | +* void turnON(unsigned long delayTime) |
| 27 | +* void turnOFF() |
| 28 | +* void turnOFF(unsigned long delayTime) |
| 29 | +* void toggle() |
| 30 | +* void toggle(unsigned long delayTime) |
| 31 | +* void fade(int fadeFrom, int fadeTo, unsigned long fadeTime) |
| 32 | +* void fade(int fadeFrom, int fadeTo, unsigned long fadeTime, unsigned long delayTime) |
| 33 | +* void blink(unsigned long onTime, unsigned long offTime) |
| 34 | +* void blink(unsigned long onTime, unsigned long offTime, unsigned long delayTime) |
| 35 | +* void blinkInPeriod(unsigned long onTime, unsigned long offTime, unsigned long blinkTime) |
| 36 | +* void blinkInPeriod(unsigned long onTime, unsigned long offTime, unsigned long blinkTime, unsigned long delayTime) |
| 37 | +* void blinkNumberOfTimes(unsigned long onTime, unsigned long offTime, unsigned int numberOfTimes) |
| 38 | +* void blinkNumberOfTimes(unsigned long onTime, unsigned long offTime, unsigned int numberOfTimes, unsigned long delayTime) |
| 39 | +* void cancel(void) |
| 40 | +* int getOnOff(void) |
| 41 | +* int getState(void) |
| 42 | +* void loop(void) |
| 43 | + |
| 44 | + |
| 45 | +Available Examples |
| 46 | +---------------------------- |
| 47 | +* [LED Blink](https://arduinogetstarted.com/library/led/example/arduino-led-blink) |
| 48 | +* [LED Blink In Period](https://arduinogetstarted.com/library/led/example/arduino-led-blink-in-period) |
| 49 | +* [LED Blink Number Of Times](https://arduinogetstarted.com/library/led/example/arduino-led-blink-number-of-times) |
| 50 | +* [LED Fade In Fade Out](https://arduinogetstarted.com/library/led/example/arduino-led-fade-in-fade-out) |
| 51 | +* [LED On Off](https://arduinogetstarted.com/library/led/example/arduino-led-on-off) |
| 52 | +* [LED Toggle](https://arduinogetstarted.com/library/led/example/arduino-led-toggle) |
| 53 | +* [Multiple LED](https://arduinogetstarted.com/library/led/example/arduino-multiple-led) |
| 54 | +* [LED Array](https://arduinogetstarted.com/library/led/example/arduino-led-array) |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +How To Install the Library |
| 59 | +---------------------------- |
| 60 | +* [ezLED Library Installization Guide](https://arduinogetstarted.com/tutorials/arduino-led-library) |
| 61 | + |
| 62 | +References |
| 63 | +---------------------------- |
| 64 | +* [ezLED Library Reference](https://arduinogetstarted.com/tutorials/arduino-led-library) |
0 commit comments