Skip to content

Commit

Permalink
Update README file with example for setColorByName().
Browse files Browse the repository at this point in the history
  • Loading branch information
samaphp committed Sep 22, 2019
1 parent 15ddcb8 commit c365226
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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);
```

0 comments on commit c365226

Please sign in to comment.