SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * tinyRTC.c
  3.  *
  4.  * Created: 2019-08-11 오후 4:19:14
  5.  * Author : yeong
  6.  */
  7.  
  8. #define F_CPU 16000000UL
  9. #include <util/delay.h>
  10. #include <avr/io.h>
  11. #include "tinyRTC.h"
  12.  
  13. int main(void)
  14. {
  15.     uart0_init();
  16.     tinyRTC_init();
  17.  
  18.     tinyRTC_setup(00, 10, 17, 1, 11, 8, 19);
  19.     tinyRTC_set_date();
  20.     tinyRTC_read_date();
  21.     _delay_ms(2000);
  22.     tinyRTC_read_date();
  23.    
  24.     while (1)
  25.     {
  26.         // 이 부분은 setup 이후에 실행
  27.         // tinyRTC_read_date();
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top