MAPID/CP uses SerialCommand_Advanced

This commit is contained in:
Malte Bublitz 2023-10-15 18:00:37 +02:00
parent 5d8bec255a
commit 187e017622
Signed by: malte70
GPG key ID: 605DA5C729F9C184
3 changed files with 14 additions and 4 deletions

View file

@ -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);

View file

@ -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

View file

@ -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