- 10
- 갱생협스
- 조회 수 149
#include <Wire.h> #include <RTClib.h> RTC_DS1307 RTC; void setup() { Serial.begin(9600); RTC.begin(); Wire.begin(); } void loop() { DateTime t = RTC.now(); int yr = t.year(); int hr = t.hour(); int min = t.minute(); int sec = t.second(); if(yr == 2019 && hr == 12 && min == 0 && sec == 0) { Serial.println("Happy New Year!"); Serial.println("SFU 여러분 새해 복 곱빼기로 받으세요 :)"); } }
님 포함 1명이 추천
추천인 1
작성자
댓글 10
![profile image](/files/member_extra_info/profile_image/840/162/162840.png?t=1497669415)
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.01. 14:58
![profile image](/files/member_extra_info/profile_image/852/368/368852.png?t=1583473743)
Serial.println("감사합니다!");
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.01. 15:00
![title : 도밥위키! title: 도밥위키!](https://sfuhost.com/./files/iconshop/a87b8223f6a85a560e5ac3d55a356358.jpg)
![profile image](/files/member_extra_info/profile_image/968/076/76968.png?t=1488195322)
Serial.printin 그런거 없어요 ㅋㅋㅋㅋ
Arduino 뱃지 이번에 하나 사려는데 같이 사시련지요
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.01. 22:28
![profile image](/files/member_extra_info/profile_image/852/368/368852.png?t=1583473743)
LN입니다 IN이 아니라.
Serial.println 공부좀...
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.02. 09:20
![title : 도밥위키! title: 도밥위키!](https://sfuhost.com/./files/iconshop/a87b8223f6a85a560e5ac3d55a356358.jpg)
![profile image](/files/member_extra_info/profile_image/968/076/76968.png?t=1488195322)
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ LN이였구만요 암튼 아두이노 안건들인지 오래됫구만요
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.02. 14:43
![title : 크롬 title: 크롬](https://sfuhost.com/./files/iconshop/0d2a648b22c065dd85f8c3302c923395.gif)
![profile image](/files/member_extra_info/profile_image/977/484/484977.jpg?t=1546428438)
새해 복 많이 받으세용!
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.02. 09:57
![profile image](/files/member_extra_info/profile_image/852/368/368852.png?t=1583473743)
장기하와 얼굴들 - 새해 복
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.02. 12:04
![title : 황금 서버 (30일) title: 황금 서버 (30일)](https://sfuhost.com/./files/iconshop/33055af84f02ddedb19db038cdae0d2f.gif)
![profile image](/files/member_extra_info/profile_image/569/001/1569.png?t=1527385219)
아두이노는 비교문 사용할 때 ==로 안쓰나보네요...?
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.02. 16:21
![profile image](/files/member_extra_info/profile_image/852/368/368852.png?t=1583473743)
and &&
or ||
이렇게 쓰는 걸로 알고 있습니다.
...어.. 잠깐만.
저거 제가 틀렸네요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋ
오늘은 졸리니까 내일 수정해놓겠습니다!
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.03. 00:07
![title : 황금 서버 (30일) title: 황금 서버 (30일)](https://sfuhost.com/./files/iconshop/33055af84f02ddedb19db038cdae0d2f.gif)
![profile image](/files/member_extra_info/profile_image/569/001/1569.png?t=1527385219)
ㅋㅋㅋㅋ 그렇군요
![comment menu](/modules/board/skins/comely_board/images/icn_more.png)
2019.01.03. 00:22
권한이 없습니다.
협스님도요!