From c365226a1435ea9e4966d7206811a4003c1cfa54 Mon Sep 17 00:00:00 2001 From: samaphp Date: Sun, 22 Sep 2019 06:44:04 +0300 Subject: [PATCH] Update README file with example for setColorByName(). --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 72d9c99..11a9d0a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # lifxlan -LifxLan protocol. +LifxLan protocol. (Work in progress) + +Note: This library is not ready for use in production. And does not cover all API capabilities. I just built it for my self to + +**Setting light color by name:** +``` +$light_ip = '192.168.1.x'; +$Light = new Light($light_ip); +$brightness = 40; +$Light->setColorByName('white_warm', $brightness); +```