From 4d8466d79ab1a585bd651a670ea296856efaffdb Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Fri, 30 Aug 2019 11:03:01 -0700 Subject: [PATCH] added usage output to serial by sending #featureadd --- .../Pyr0_Piezo_Sensor_v2.x.x/pP_serial.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/pP_serial.h b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/pP_serial.h index 5d445c2..4adca89 100644 --- a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/pP_serial.h +++ b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/pP_serial.h @@ -116,7 +116,22 @@ void updateParams() { updateVAdj(); } else if (strcmp(serialMessageIn, "HYST") == 0) { - updateHysteresis(); + updateHysteresis(); + } + else if (strcmp(serialMessageIn, "HELP") == 0) { + Serial.println("To change trigger active duration: TRG_D [integer for milliseconds]"); + Serial.println("To change gain factor: GAIN_F [integer for gain state - see note*]"); + Serial.println("To change ADC hysteresis value: HYST [integer]"); + Serial.println("To change sensor input pullup vRef low threshold: VADJ [float value]"); + Serial.println("To change comparator trigger high threshold: VCOMP [float value]"); + Serial.println(""); + Serial.println("These commands should be wrapped in this format:"); + Serial.println(""); + Serial.println(""); + Serial.println("Examples:"); + Serial.println(" <~ set gain factor to index 3 (6x)"); + Serial.println(" <~ set the vref floor to 2.35V"); + parseData(); } }