Compare commits
No commits in common. "5edb208e01f0f0710832f563aaa7bc37d3d93476" and "8f54104f5cc266241d3a3c903c81bb81d06cddfc" have entirely different histories.
5edb208e01
...
8f54104f5c
5 changed files with 4 additions and 73 deletions
|
@ -37,9 +37,6 @@ void setup() {
|
|||
SCmd.addCommand("ON", ledOn);
|
||||
SCmd.addCommand("OFF", ledOff);
|
||||
// LCD
|
||||
SCmd.addCommand("LCDON", lcdOn);
|
||||
SCmd.addCommand("LCDOFF", lcdOff);
|
||||
|
||||
SCmd.addCommand("ECHO", lcdEcho);
|
||||
SCmd.addCommand("CLS", lcdClear);
|
||||
SCmd.addCommand("LINE", lcdLine);
|
||||
|
@ -174,16 +171,11 @@ void help() {
|
|||
Serial.println(" VER");
|
||||
Serial.println(" GETTY");
|
||||
Serial.println(" HELP");
|
||||
Serial.println(" CLS");
|
||||
Serial.println(" ON");
|
||||
Serial.println(" OFF");
|
||||
Serial.println(" LCDON");
|
||||
Serial.println(" LCDOFF");
|
||||
Serial.println(" ECHO Text");
|
||||
Serial.println(" CLS");
|
||||
Serial.println(" LINE i");
|
||||
#ifdef README_PROGMEM
|
||||
Serial.println(" README");
|
||||
#endif
|
||||
|
||||
// Show prompt again
|
||||
Serial.println();
|
||||
|
@ -192,8 +184,8 @@ void help() {
|
|||
|
||||
void ledOn() {
|
||||
Serial.println("");
|
||||
|
||||
Serial.println("Turning LED to *ON*");
|
||||
|
||||
//lcd.println("LED on");
|
||||
digitalWrite(PIN_LED, HIGH);
|
||||
|
||||
|
@ -203,35 +195,11 @@ void ledOn() {
|
|||
|
||||
void ledOff() {
|
||||
Serial.println("");
|
||||
|
||||
Serial.println("Turning LED to *OFF*");
|
||||
|
||||
//lcd.println("LED off");
|
||||
digitalWrite(PIN_LED, LOW);
|
||||
|
||||
// Show prompt again
|
||||
Serial.print(TTY_PROMPT);
|
||||
}
|
||||
|
||||
void lcdOn() {
|
||||
Serial.println("");
|
||||
|
||||
// Turn display on
|
||||
Serial.println("Turning LCD screen to *ON*");
|
||||
lcd.display();
|
||||
lcd.setBrightness(30);
|
||||
|
||||
// Show prompt again
|
||||
Serial.print(TTY_PROMPT);
|
||||
}
|
||||
|
||||
void lcdOff() {
|
||||
Serial.println("");
|
||||
|
||||
// Turn display on
|
||||
Serial.println("Turning LCD screen to *OFF*");
|
||||
lcd.noDisplay();
|
||||
lcd.setBrightness(1);
|
||||
|
||||
// Show prompt again
|
||||
Serial.print(TTY_PROMPT);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define _CONFIG_H_
|
||||
|
||||
#define OS_NAME "MAPID/CP"
|
||||
#define OS_VERSION 5
|
||||
#define OS_VERSION 4
|
||||
|
||||
#define PIN_LED LED_BUILTIN
|
||||
#define PIN_LCD 2
|
||||
|
|
|
@ -16,18 +16,6 @@ switch ($_POST["cmd"]) {
|
|||
case "cls":
|
||||
fwrite($f, "CLS");
|
||||
break;
|
||||
case "on":
|
||||
fwrite($f, "ON");
|
||||
break;
|
||||
case "off":
|
||||
fwrite($f, "OFF");
|
||||
break;
|
||||
case "lcdon":
|
||||
fwrite($f, "LCDON");
|
||||
break;
|
||||
case "lcdoff":
|
||||
fwrite($f, "LCDOFF");
|
||||
break;
|
||||
case "line":
|
||||
fwrite($f, "LINE ");
|
||||
fwrite($f, $_POST["line"]);
|
||||
|
|
|
@ -26,26 +26,6 @@ $Title = "MAPID-FIFO Web-UI";
|
|||
<button type="submit">Clear</button>
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="on">
|
||||
<button type="submit">LED On</button>
|
||||
</form>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="off">
|
||||
<button type="submit">LED Off</button>
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="lcdon">
|
||||
<button type="submit">Display On</button>
|
||||
</form>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="lcdoff">
|
||||
<button type="submit">Display Off</button>
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="line">
|
||||
|
|
|
@ -20,11 +20,6 @@ section {
|
|||
margin: 0 0 2em;
|
||||
}
|
||||
|
||||
form {
|
||||
display: inline-block;
|
||||
margin-right: .5em;
|
||||
}
|
||||
|
||||
input, select {
|
||||
border-radius: 6px;
|
||||
padding: 6px 14px;
|
||||
|
|
Loading…
Reference in a new issue