MAPID/CP uses SerialCommand_Advanced
This commit is contained in:
parent
5d8bec255a
commit
187e017622
3 changed files with 14 additions and 4 deletions
|
@ -43,7 +43,7 @@ void setup() {
|
|||
// Show README
|
||||
SCmd.addCommand("README", showReadMe);
|
||||
|
||||
SCmd.addDefaultHandler(commandNotFound);
|
||||
SCmd.setDefaultHandler(commandNotFound);
|
||||
|
||||
|
||||
Serial.println("Ready.");
|
||||
|
@ -72,7 +72,7 @@ void loop() {
|
|||
SCmd.readSerial();
|
||||
}
|
||||
|
||||
void commandNotFound() {
|
||||
void commandNotFound(char *cmd) {
|
||||
Serial.println("");
|
||||
//Serial.println("[ERROR @ TTY:IN] COMMAND NOT FOUND!");
|
||||
Serial.println("[ERROR] COMMAND NOT FOUND!");
|
||||
|
@ -137,7 +137,7 @@ void showVersion() {
|
|||
Serial.print(OS_NAME);
|
||||
Serial.print(" v");
|
||||
Serial.println(OS_VERSION);
|
||||
Serial.print("Hardware: ");
|
||||
Serial.print("Hardware: Arduino ");
|
||||
Serial.println(BOARD);
|
||||
|
||||
Serial.print(TTY_PROMPT);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define _CONFIG_H_
|
||||
|
||||
#define OS_NAME "MAPID/CP"
|
||||
#define OS_VERSION 3
|
||||
#define OS_VERSION 4
|
||||
|
||||
#define PIN_LED LED_BUILTIN
|
||||
#define PIN_LCD 2
|
||||
|
|
10
README.md
10
README.md
|
@ -5,3 +5,13 @@ Info display powered by two parts:
|
|||
1. Command line OS running on Arduino (MAPID/CP)
|
||||
2. Python pyserial script controlling the display over a serial connection
|
||||
|
||||
## Requirements
|
||||
|
||||
- Arduino libraries
|
||||
- SerialCommand Advanced
|
||||
- serLCD
|
||||
- Python libraries
|
||||
- pyserial
|
||||
- python-dotenv
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue