예제 #1
0
        private async void initClock()
        {
            MCP7940N instance = MCP7940N.Instance();
            await instance.Initialize();

            RTCManagerAsync timeManager = new RTCManagerAsync(MCP7940N.Instance());

            timeManager.start();
            MainPage.setTimeManager(timeManager);
            ChangeTimePage.setTimeManager(timeManager);
        }
예제 #2
0
 public static MCP7940N Instance()
 {
     if (_instance == null)
     {
         if (CHANNEL == null)
         {
             _instance = new MCP7940N();
         }
         else
         {
             _instance = new MCP7940N(CHANNEL);
         }
     }
     return(_instance);
 }
예제 #3
0
 public RTCManager(MCP7940N instance)
 {
     rtc_controller = instance;
 }
예제 #4
0
 public RTCManagerAsync(MCP7940N instance)
 {
     current_time   = new DateTime();
     rtc_controller = instance;
 }