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); }
public static MCP7940N Instance() { if (_instance == null) { if (CHANNEL == null) { _instance = new MCP7940N(); } else { _instance = new MCP7940N(CHANNEL); } } return(_instance); }
public RTCManager(MCP7940N instance) { rtc_controller = instance; }
public RTCManagerAsync(MCP7940N instance) { current_time = new DateTime(); rtc_controller = instance; }