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_polled/ALARM_polled.ino

    r136 r175  
    22* This sketch demonstrates how configure alarm in polled mode.
    33  In this mode you hav to check continuously ALARM0 flag in the main program code.
     4 
     5  NOTE: for M0/M0 pro only you can select the oscillator source for count.
     6If you want to use a low power oscillator use rtc.begin(TIME_H24, LOW_POWER); function.
     7If you want to use a more accurate oscillator use rtc.begin(TIME_H24, HIGH_PRECISION); function.
    48*********************************************************************************************************************************************************************************/ 
    59
     
    1721  rtc.setDate(13,8,15);     //setting date
    1822  rtc.enableAlarm(SEC,ALARM_POLLED,NULL); //enabling alarm in polled mode and match on second
    19   rtc.local_time.hour=17;
    20   rtc.local_time.minute=5;
    21   rtc.local_time.second=10;  //setting second to match
     23  rtc.time.hour=17;
     24  rtc.time.minute=5;
     25  rtc.time.second=10;  //setting second to match
    2226  rtc.setAlarm();  //write second in alarm register
    2327}
Note: See TracChangeset for help on using the changeset viewer.