Skip to content

Instantly share code, notes, and snippets.

View Julien-Gustin's full-sized avatar
💻

Julien Gustin Julien-Gustin

💻
View GitHub Profile
@jamesabruce
jamesabruce / Control Philips Hue from Arduino Ethernet Shield
Created April 5, 2015 20:43
Example of using an Arduino with Ethernet shield to control Philips Hue, with PIR motion sensor on i/o pin 2.
/*
Talking to Hue from an Arduino
By James Bruce (MakeUseOf.com)
Adapted from code by Gilson Oguime. https://github.com/oguime/Hue_W5100_HT6P20B/blob/master/Hue_W5100_HT6P20B.ino
*/
#include <SPI.h>
#include <Ethernet.h>
// Hue constants