An example project for the Heltec Turtle LoRa board (STM32L4 and SX1276 chips). The projects is only supported for the Nucleo-L432KC board platform in the mbed online and offline compiler environment. Visit www.radioshuttle.de (choose Turtle board) for instructions. Note that most source files and libraries are open source, however some files especially the RadioShuttle core protocol is copyrighted work. Check header for details.

Dependencies:   mbed BufferedSerial SX1276GenericLib OLED_SSD1306 HELIOS_Si7021 NVProperty RadioShuttle-STM32L4 USBDeviceHT

Revision:
22:9cca40fcb25e
Parent:
18:d2f227e0a8bf
Child:
25:8578fed9087e
--- a/main.cpp	Mon Feb 04 10:23:01 2019 +0100
+++ b/main.cpp	Wed Feb 06 15:52:20 2019 +0100
@@ -49,9 +49,35 @@
 	dprintf("Welcome to RadioShuttle v%d.%d", RS_MAJOR, RS_MINOR);
     dprintf("Voltage: %.2f (%s powered)", BatteryVoltage(), BatterySource());
 	
+	char buf[32];
+	
+	bool cmdLoop = true;
+	while(cmdLoop) {
+		rprintf("\r\nAvailable commands (p = Property Editor, r = Reset, q = Quit)\r\nwaiting 10 secs ...\r\n");
+		rprintf("\r\n$ ");
+		if (ConsoleReadline(buf, sizeof(buf), true, 10000) == NULL) {
+			cmdLoop = false;
+			break;
+		}
+		switch(buf[0]) {
+			case 'p':
+			case 'P':
 #ifdef FEATURE_NVPROPERTYEDITOR
-	// NVPropertyEditor();
+				NVPropertyEditor();
 #endif
+			break;
+			case 'q':
+			case 'Q':
+			cmdLoop = false;
+			break;
+			case 'r':
+			case 'R':
+				MCUReset();
+				break;
+			default:
+			break;
+		}
+	}
 	
 #ifdef FEATURE_LORA
     InitRadio();