From 8752a766e55f2da4cea0afaa0df0d1b35df81aec Mon Sep 17 00:00:00 2001 From: Max Kalashnikov Date: Sun, 12 Jul 2020 23:38:14 +0300 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 406affb..1871003 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ You can initialize as many LEDs as you wish by creating as many instances, they You can change the state of the LED by call `Wink(STATE)` function of the instance. STATE is the ENUM which includes ON, OFF, FAST, SLOW states. Calling function doesn't hang main thread or make any delay. Changing state(s) will be full async. +You can get current state by calling `GetState()` function. + ### Loop: To work properly library needs to observe the main loop. Thats why you need to call `Loop()` function of each LedWink instance inside main loop() function of the program (see example below).