bsiever / microbit-pxt-timeanddate

Software Based Real Time Clock (Time & Date) for the Micro:Bit
https://bsiever.github.io/microbit-pxt-timeanddate/
MIT License
4 stars 1 forks source link

TODOs #15

Open bsiever opened 2 years ago

bsiever commented 2 years ago
  1. Consider replacing the forever loop (here) with a everyInterval() or some other variation that runs in background. (everyInterval() in eventually delegates to runInParallel (here), which may not be any better/different. Review.
  2. Add in a daily correction factor (# of ms to adjust +/- per day?). Maybe do this by modular updates to skip/freeze a second? Or just at single time per day? Prefer the continual approach.
  3. Update the event handler mechanism (here to be less wonky. Use event that are registered with DAL/CODAL? See regiterWithDAL() examples, like here and corresponding MicroBitEvent calls.
bsiever commented 2 years ago

1 and 3 done.

bsiever commented 2 years ago

2 done / in testing.