Skip to content

Commit c365226

Browse files
committed
Update README file with example for setColorByName().
1 parent 15ddcb8 commit c365226

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# lifxlan
2-
LifxLan protocol.
2+
LifxLan protocol. (Work in progress)
3+
4+
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
5+
6+
**Setting light color by name:**
7+
```
8+
$light_ip = '192.168.1.x';
9+
$Light = new Light($light_ip);
10+
$brightness = 40;
11+
$Light->setColorByName('white_warm', $brightness);
12+
```

0 commit comments

Comments
 (0)