diff --git a/src/main_2/main_2.ino b/src/main_2/main_2.ino index 65176f6280cb4b282434d0b139828d3b980cb27f..d781a95d8cc6b87688546fa3a0eb18ed9b54add9 100644 --- a/src/main_2/main_2.ino +++ b/src/main_2/main_2.ino @@ -3,7 +3,7 @@ #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <ArduinoJson.h> -#include <TimeLib.h> +//#include <TimeLib.h> const int ledPin = 2; const int buttonPin = 4; @@ -53,8 +53,8 @@ int light; char json[] = "{\"success\":true,\"year\":3,\"humidity\":5,\"light\":10}"; -#define TIME_MSG_LEN 11 // time sync to PC is HEADER and unix time_t as ten ascii digits -#define TIME_HEADER 'T' // Header tag for serial time sync message +//#define TIME_MSG_LEN 11 // time sync to PC is HEADER and unix time_t as ten ascii digits +//#define TIME_HEADER 'T' // Header tag for serial time sync message void setup() { // put your setup code here, to run once: @@ -92,7 +92,7 @@ void loop() { // get the value to be displayed and update one digit //update_one_digit(counter % digit_base); - update_one_digit(GetCurrentTime() % digit_base); + update_one_digit(years % digit_base); lcd.setCursor(0,0); lcd.autoscroll(); @@ -194,7 +194,7 @@ String GenerateJSONString() { totalString = "|GreenTyno | Humidity : "+ humidityString + " Light : " + lightString +" |"; return (totalString); } - +/* int GetCurrentTime() { //GetPCTime(); //setTime(0); @@ -231,7 +231,7 @@ void GetPCTime() { //Serial.println(); } } -} +}*/ void InitializeClient() { pinMode(13, OUTPUT);