-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
22 lines (16 loc) · 963 Bytes
/
README
File metadata and controls
22 lines (16 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
To change the IP and MAC address of Eithernet Shild edit follwoing lines in Webduino_LED_Controller.ino
static uint8_t mac[] = { 0x90, 0xA2, 0xDA, 0x0D, 0x18, 0x48 };
static uint8_t ip[] = { 10, 0, 1, 12 };
To change the port where webserver would listen to edit the following in Webduino_LED_Controller.ino
WebServer webserver(PREFIX, 9889);
To change the LED pin configuration edit following in EmitColor.h
int REDPin = 6; // RED pin of the LED to PWM pin 6
int GREENPin = 5; // GREEN pin of the LED to PWM pin 5
int BLUEPin = 3; // BLUE pin of the LED to PWM pin 3
To change the color of LED on Arduino, execute followings:
% curl http://10.0.1.12:9889/set_light.html?red
% curl http://10.0.1.12:9889/set_light.html?green
% curl http://10.0.1.12:9889/set_light.html?blue
% curl http://10.0.1.12:9889/set_light.html?yellow
% curl http://10.0.1.12:9889/set_light.html?none
% curl http://10.0.1.12:9889/set_light.html?blink_red