You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bitluniHomeAutomation.ino
+36-6
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ by bitluni 2016
4
4
https://creativecommons.org/licenses/by/4.0/
5
5
Attribution means you can use it however you like as long you
6
6
mention that it's base on my stuff.
7
-
I'll be pleased if you'd do it ba sharing http://youtube.com/bitlunislab
7
+
I'll be pleased if you'd do it by sharing http://youtube.com/bitlunislab
8
8
*/
9
9
10
10
#include<ESP8266WiFi.h>
@@ -20,9 +20,10 @@ I'll be pleased if you'd do it ba sharing http://youtube.com/bitlunislab
20
20
#include"RainbowFunction.h"
21
21
#include"SimpleRGBFunction.h"
22
22
#include"WaveFunction.h"
23
+
#include"RF.h"
23
24
24
-
constchar* ssid = "....";
25
-
constchar* password = "....";
25
+
constchar* ssid = "...";
26
+
constchar* password = "...";
26
27
27
28
ESP8266WebServer server(80);
28
29
@@ -45,8 +46,9 @@ void handleRoot() {
45
46
message += "<a href='/setleds?r=32&g=64&b=32&fade=1000'>/setleds</a> sets LEDs to the color from arguments: r=<0..255> g=<0..255> b=<0..255><br>";
46
47
message += "<a href='/ledsoff?fade=500'>/ledsoff</a> turns off LEDs<br>";
47
48
message += "<a href='/setpins?D1=128&D2=256&D3=512'>/setpins</a> sets to any of the in arguments specified pins (D0..D8) to their PWM values (0..1023). To use them digital: 0=off, 1023=on<br>";
48
-
message += "<a href='/togglepins'>/togglepins</a> inverts all pin values form pins used before.<br><br>";
49
-
message += "All functions except togglepins support the argument 'fade' which specifies the milliseconds it takes to fade to the new specified state. ...nice blending ;-)<br>";
49
+
message += "<a href='/togglepins'>/togglepins</a> inverts all pin values form pins used before.<br>";
50
+
message += "<a href='/rf?D=6&id0=182&id1=182&channel=0&on=1'>/rf</a> sends a rf code from arguments: D=<0..8> id0=<0..255> id1=<0..255> channel=<1..7> on=<0..1><br><br>";
51
+
message += "All functions except togglepins and rf support the argument 'fade' which specifies the milliseconds it takes to fade to the new specified state. ...nice blending ;-)<br>";
50
52
message += "<br>Syntax is as follows: http://<ip>/<command>?<argument1>=<value1>&<argument2>=<value2>&...<br>";
51
53
message += "You can click on each link to see an example.<br><br>";
52
54
message += "have fun -<a href='http://youtube.com/bitlunislab'>bitluni</a></body></html>";
0 commit comments