Ignore:
Timestamp:
Mar 28, 2016, 2:09:46 PM (8 years ago)
Author:
ertl-honda
Message:

ライブラリを Arduino IDE 1.7.9 にupdate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/arduino_lib/libraries/RTC/examples/ALARM_interrupt/ALARM_interrupt.ino

    r136 r175  
    33This mode is more conveniently because you use processor for other tasks and when alarm match occurs interrupt routine is executed.
    44In this way, alarm flag checking is indipendent from main program flow.
     5
     6NOTE: for M0/M0 pro only you can select the oscillator source for count.
     7If you want to use a low power oscillator use rtc.begin(TIME_H24, LOW_POWER); function.
     8If you want to use a more accurate oscillator use rtc.begin(TIME_H24, HIGH_PRECISION); function.
    59******************************************************************************************************************************************************************************/
    610
     
    1822  rtc.setDate(13,8,15);     //setting date
    1923  rtc.enableAlarm(SEC,ALARM_INTERRUPT,alarm_int); //enabling alarm in polled mode and match on second
    20   rtc.local_time.hour=17;
    21   rtc.local_time.minute=5;
    22   rtc.local_time.second=10;  //setting second to match
     24  rtc.time.hour=17;
     25  rtc.time.minute=5;
     26  rtc.time.second=10;  //setting second to match
    2327  rtc.setAlarm();  //write second in alarm register
    2428}
Note: See TracChangeset for help on using the changeset viewer.