From c095a58e85c837a4b842b273e5a83f83f27dcf8a Mon Sep 17 00:00:00 2001 From: finikokasulanovenda <13515029@std.stei.itb.ac.id> Date: Tue, 10 Apr 2018 17:12:59 +0700 Subject: [PATCH] Change date retrieval --- src/main_2/main_2.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main_2/main_2.ino b/src/main_2/main_2.ino index 65176f6..d781a95 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); -- GitLab