Skip to content
Snippets Groups Projects
Commit 07815c88 authored by Pico3's avatar Pico3
Browse files

Automatic naming added to version command.

parent f344897e
Branches
No related tags found
No related merge requests found
......@@ -3,7 +3,9 @@
Read humidity sensor values and send them over serial connection.
***************************
*/
const String version = "HumiditySensor 1.0"; // Version of this script
const String version = "1.1.0"; // Version of this script
// *****************************OPERATIONAL PARAMETERS*****************************
#include "Wire.h"
int del = 10;
byte rval = 0x00;
......@@ -12,9 +14,6 @@ struct ArrayData {
double array[2];
};
// *****************************OPERATIONAL PARAMETERS*****************************
// Arduino Due, PICO2: COM6
// sensor parameters
long measurements = 10; //How many times should the sensor be read for a single readout? old 100
const int averaging = 5; // Number of times for the running average old 50
......@@ -341,7 +340,12 @@ void loop()
Serial.println();
break;}
case 'v': // Send Version
Serial.println(version);
Serial.print(__FILE__); // file name at compilation
Serial.print(" ");
Serial.print(version);
Serial.print(" ");
Serial.print(__DATE__); // compilation date
Serial.println();
break;
};
}
......
......@@ -3,7 +3,7 @@
* Read sensor values and send them over serial connection.
***************************
*/
const String version = "ReadSensors 1.1"; // Version of this script
const String version = "1.1.1"; // Version of this script. Filename is added before, date of compilation afterwards.
// *****************************OPERATIONAL PARAMETERS*****************************
......@@ -115,7 +115,12 @@ void loop(){
Serial.println("debug");
break;
case 'v': // Send Version
Serial.println(version);
Serial.print(__FILE__); // file name at compilation
Serial.print(" ");
Serial.print(version);
Serial.print(" ");
Serial.print(__DATE__); // compilation date
Serial.println();
break;
};
}
......
......@@ -8,7 +8,7 @@ You can send a command to set the shutter (o0, o1) or to switch to manual mode (
"l" returns the current state and manual mode (tab separated)
****************************
*/
const String version = "ServoShutter 0.2.0"; // Version of this script
const String version = "1.0.0"; // Version of this script
// Servo setup
#include <Servo.h>
......@@ -48,7 +48,12 @@ void loop()
Serial.println("pong");
break;
case 'v': // Send Version
Serial.println(version);
Serial.print(__FILE__); // file name at compilation
Serial.print(" ");
Serial.print(version);
Serial.print(" ");
Serial.print(__DATE__); // compilation date
Serial.println();
break;
case 'l': // return last state
Serial.print(state);
......
......@@ -4,8 +4,8 @@
* Control the shutters of the Quanta-Ray
****************************************
*/
const String version = "Shutterschalter 0.1"; // Version of this script
//** PARAMETERS **//
const String version = "1.0.0"; // Version of this script
#include <LiquidCrystal.h> //Library for LCD
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); //Initialize LCD Lib for our application //the numbers are the Digital Pins, which are used for the LCD
......@@ -21,6 +21,7 @@ const int shgLedPin = 8;
// Constants
const int HighLimit = 850;
//** VARIABLES **//
// State variables
int fundamentalShutter = LOW;
int shgShutter = LOW;
......@@ -83,7 +84,12 @@ void loop(){
Serial.println("Debug");
break;
case 'v': // Send Version
Serial.println(version);
Serial.print(__FILE__); // file name at compilation
Serial.print(" ");
Serial.print(version);
Serial.print(" ");
Serial.print(__DATE__); // compilation date
Serial.println();
break;
}
}
......
......@@ -7,7 +7,7 @@
*/
//** CONSTANTS PARAMETERS change for your application **//
const String version = "TemperatureController 1.2.3"; // Version of this script
const String version = "1.2.3"; // Version of this script. Filename is added before, date of compilation afterwards.
const int cyclePeriod = 10; //program cycle period in s
......@@ -215,7 +215,12 @@ void loop(){
Serial.println();
break;
case 'v': // Send Version
Serial.println(version);
Serial.print(__FILE__); // file name at compilation
Serial.print(" ");
Serial.print(version);
Serial.print(" ");
Serial.print(__DATE__); // compilation date
Serial.println();
break;
case 'e': // Store values in EEPROM
EEPROM.put(0 * floatsize, setpoint);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment