From 187e017622eb2caf9d0fd5d70e273a17840f5a96 Mon Sep 17 00:00:00 2001 From: Malte Bublitz Date: Sun, 15 Oct 2023 18:00:37 +0200 Subject: [PATCH] MAPID/CP uses SerialCommand_Advanced --- MAPID-CP/MAPID-CP.ino | 6 +++--- MAPID-CP/config.h | 2 +- README.md | 10 ++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/MAPID-CP/MAPID-CP.ino b/MAPID-CP/MAPID-CP.ino index 386612d..b4bfe6f 100644 --- a/MAPID-CP/MAPID-CP.ino +++ b/MAPID-CP/MAPID-CP.ino @@ -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); diff --git a/MAPID-CP/config.h b/MAPID-CP/config.h index 8fb635d..a945171 100644 --- a/MAPID-CP/config.h +++ b/MAPID-CP/config.h @@ -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 diff --git a/README.md b/README.md index b9bc0ca..f681587 100644 --- a/README.md +++ b/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 + +