Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <DS1307.h>
- #include <Wire.h>
- #define DS1307_ADDRESS 0x68
- #include <LiquidCrystal_I2C.h>
- #include <DallasTemperature.h>
- #include <OneWire.h>
- #define BACKLIGHT_PIN 3 //lcd
- #define ONE_WIRE_BUS 11
- byte zero = 0x00;
- OneWire oneWire(ONE_WIRE_BUS); //termometr - one wire
- DallasTemperature sensors(&oneWire); //termometr
- LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7);
- int LED1 = 11;
- int T1 = 11;
- int GODZ;
- int MIN;
- int SEC;
- void setup()
- {
- Wire.begin();
- pinMode(LED1, OUTPUT);
- pinMode(T1, INPUT);
- Serial.begin(9600);
- }
- void loop()
- {
- GODZ = (RTC.get(DS1307_HR,true));
- MIN = (RTC.get(DS1307_MIN,true));
- SEC = (RTC.get(DS1307_SEC,true));
- Serial.println(GODZ);
- Serial.println(MIN);
- Serial.println(SEC);
- delay (100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement