We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://forums.ghielectronics.com/t/rtc-not-waking-from-sleep-in-2-2-0-6/24739/23
Special code below can reproduce the issue on SC20260
class Program10 { static void Main() { //RtcController.GetDefault().Now = new DateTime(2000, 1, 1); RtcController.GetDefault().Now = new DateTime(2023, 10, 17, 13, 20, 15); RtcController.GetDefault().SetChargeMode(BatteryChargeMode.None); GpioPin ledDBG = GpioController.GetDefault().OpenPin(SC20260.GpioPin.PH11); ledDBG.SetDriveMode(GpioPinDriveMode.Output); ledDBG.Write(GpioPinValue.High); GpioPin ldr = GpioController.GetDefault().OpenPin(SC20260.GpioPin.PE3); ldr.SetDriveMode(GpioPinDriveMode.InputPullUp); ldr.ValueChangedEdge = GpioPinEdge.FallingEdge; ldr.ValueChanged += (GpioPin sender, GpioPinValueChangedEventArgs e) => { Shutdown(); }; if (ldr.Read() == GpioPinValue.Low) { Shutdown(); } Thread.Sleep(1000); Power.WakeupEdge = WakeupEdge.Falling; DateTime wakeupTime = RtcController.GetDefault().Now.AddSeconds(4); Power.Shutdown(false, wakeupTime); Thread.Sleep(Timeout.Infinite); void Shutdown() { Power.WakeupEdge = WakeupEdge.Falling; //Power.Shutdown(false, RtcController.GetDefault().Now.AddHours(24 * 365 * 5)); Power.Shutdown(false, RtcController.GetDefault().Now.AddSeconds(7 * 24 * 60 * 60 + 10)); //Power.Shutdown(false, DateTime.MaxValue); while (true) ; } } }
The text was updated successfully, but these errors were encountered:
Palomino34
No branches or pull requests
https://forums.ghielectronics.com/t/rtc-not-waking-from-sleep-in-2-2-0-6/24739/23
Special code below can reproduce the issue on SC20260
The text was updated successfully, but these errors were encountered: