Skip to content

Commit a4382e0

Browse files
committed
Giving some more verbose info about version
1 parent ba8faf1 commit a4382e0

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

smart_incubator/client_firmware/client_firmware.ino

+16-8
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//Global variables use 1,655 bytes (80%) of dynamic memory, leaving 393 bytes for local variables. Maximum is 2,048 bytes.
55

66
//define hardware connection and hard parameters
7-
#define VERSION 2.3
7+
#define VERSION 2.32
88
#define masterID 0
9-
#define myID 15
9+
#define myID 20
1010

1111
//still not implemented
1212
#define BUTTON_PIN 2 /// THIS IS ACTUALLY USED BY TEC DIR
@@ -25,17 +25,20 @@
2525
//#define HUM_PIN 9
2626

2727
//pin for PELTIER TEC
28+
#define USE_TEC
29+
#define USE_TEC_PWM
2830
#define PELTIER_PWM 5 // what is the frequency of pin 6? pin 9 has a pwm frequency of 490hz
2931
#define PELTIER_DIR 2
3032

33+
3134
//define hardware and shields used
3235
#define USE_SENSIRION
3336
#define USE_RADIO
34-
#define USE_TEC
35-
//#define USE_TEC_PWM
3637
//#define USE_SD 1 // we do not use SD on regular UNOs because a) we don't need it and b) it takes too much memory
3738
//#define LOCAL_SERIAL
3839

40+
// #####################################################################################################################
41+
3942
#define CMD 'C'
4043
#define REPORT 'R'
4144
#define EVENT 'E'
@@ -162,6 +165,7 @@ void setup()
162165
{
163166

164167
Serial.begin(115200);
168+
Serial.println(VERSION);
165169

166170
#if defined(LOCAL_SERIAL)
167171
setupSerialCommands();
@@ -507,14 +511,18 @@ void debug(){
507511
Serial.print("Lights OFF: "); Serial.println(cfg.lights_off);
508512
Serial.print("Report Interval: "); Serial.println(cfg.report_delay);
509513
Serial.print("Send report: "); Serial.println(cfg.send_report);
510-
Serial.print("Temperature: "); Serial.print(env.temperature);
514+
Serial.print("T: "); Serial.print(env.temperature);
511515
Serial.print("/"); Serial.println(cfg.set_temp);
512-
Serial.print("Humidity: "); Serial.print(env.humidity);
516+
Serial.print("H: "); Serial.print(env.humidity);
513517
Serial.print("/"); Serial.println(cfg.set_hum);
514-
Serial.print("Light: "); Serial.print(CURRENT_LIGHT);
518+
Serial.print("L: "); Serial.print(CURRENT_LIGHT);
515519
Serial.print("/"); Serial.print(cfg.max_light);
516520
Serial.print(" - "); Serial.println(env.light);
517-
Serial.print("Light Mode: "); Serial.println(cfg.dd_mode);
521+
Serial.print("LM: "); Serial.println(cfg.dd_mode);
522+
#if defined(USE_TEC_PWM)
523+
Serial.println("PWM: ON ");
524+
#endif
525+
518526
}
519527

520528
void setLightMode(int mode)

0 commit comments

Comments
 (0)