-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f89181
commit 81f91ad
Showing
5 changed files
with
798 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
String cmd; | ||
void setup() { | ||
|
||
Serial.begin(115200); // initialize serial communication | ||
Serial.print("Setup"); | ||
pinMode(12, OUTPUT); // initialize the green LED pin as an output | ||
pinMode(11, OUTPUT); // initialize the red LED pin as an output | ||
} | ||
void loop() { | ||
// see if there's incoming serial data: | ||
if (Serial.available() > 0) { | ||
int pin = Serial.parseInt(); | ||
Serial.print(pin); | ||
int value = Serial.parseInt(); | ||
Serial.print(value); | ||
digitalWrite(pin,value); | ||
//incomingByte = Serial.read(); // read the oldest byte in the serial buffer | ||
//Preform the code to switch on or off the leds | ||
//Serial.println(); | ||
//Serial.println("Serial Read"); | ||
//Serial.print("incomingByte", BIN); | ||
//Serial.println(); | ||
//Serial.println(incomingByte, DEC); | ||
//if (incomingByte == '0') { | ||
//digitalWrite(ledPin13, HIGH); //If the serial data is 0 turn red LED on | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
String cmd; | ||
void setup() { | ||
|
||
Serial.begin(115200); // initialize serial communication | ||
Serial.print("Setup"); | ||
pinMode(12, OUTPUT); // initialize the green LED pin as an output | ||
pinMode(11, OUTPUT); // initialize the red LED pin as an output | ||
} | ||
void loop() { | ||
// see if there's incoming serial data: | ||
if (Serial.available() > 0) { | ||
int pin = Serial.parseInt(); | ||
Serial.print(pin); | ||
int value = Serial.parseInt(); | ||
Serial.print(value); | ||
digitalWrite(pin,value); | ||
//incomingByte = Serial.read(); // read the oldest byte in the serial buffer | ||
//Preform the code to switch on or off the leds | ||
//Serial.println(); | ||
//Serial.println("Serial Read"); | ||
//Serial.print("incomingByte", BIN); | ||
//Serial.println(); | ||
//Serial.println(incomingByte, DEC); | ||
//if (incomingByte == '0') { | ||
//digitalWrite(ledPin13, HIGH); //If the serial data is 0 turn red LED on | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<meta name="author" content="Tim Binder" /> | ||
<meta name="robots" content="robots" /> | ||
<meta name="revisit-after" content="revisit after" /> | ||
<meta name="title" content="homerrr" /> | ||
<meta name="description" content="open source home automation solution" /> | ||
|
||
<link rel="stylesheet" href="<?php echo resourcePath('/css/app-min.css'); ?>" media="all"> | ||
|
||
<link href='http://fonts.googleapis.com/css?family=Fira+Mono:400,700' rel='stylesheet' type='text/css'> | ||
|
||
<link rel="apple-touch-icon" sizes="57x57" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-57x57.png"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-60x60.png"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-72x72.png"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-76x76.png"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-114x114.png"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-120x120.png"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-144x144.png"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-152x152.png"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="<?php resourcePath('/images/favicons/') ?>/apple-touch-icon-180x180.png"> | ||
<link rel="icon" type="image/png" href="<?php resourcePath('/images/favicons/') ?>/favicon-32x32.png" sizes="32x32"> | ||
<link rel="icon" type="image/png" href="<?php resourcePath('/images/favicons/') ?>/android-chrome-192x192.png" sizes="192x192"> | ||
<link rel="icon" type="image/png" href="<?php resourcePath('/images/favicons/') ?>/favicon-96x96.png" sizes="96x96"> | ||
<link rel="icon" type="image/png" href="<?php resourcePath('/images/favicons/') ?>/favicon-16x16.png" sizes="16x16"> | ||
<link rel="manifest" href="<?php resourcePath('/images/favicons/') ?>/manifest.json"> | ||
<meta name="msapplication-TileColor" content="#ffffff"> | ||
<meta name="msapplication-TileImage" content="<?php resourcePath('/images/favicons/') ?>/mstile-144x144.png"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
|
||
|
Oops, something went wrong.