dr-mod / pico-solar-system

Digital version of the classic mechanical orrery
GNU General Public License v3.0
283 stars 25 forks source link

Support for MicroPython 1.19 to include Pico W #13

Closed ae5au closed 2 years ago

ae5au commented 2 years ago

https://github.com/ae5au/pico-solar-system

I've created a fork with support for the latest Pimoroni build of MicroPython 1.19 including the new PicoGraphics framework. It also supports the Pico W...eventually using ntp to sync time removing the need for an RTC if using somewhere that has Wi-Fi.

Please take a look and let me know if you have a chance to try it out. I have some more changes to make and would like some feedback before submitting a PR.

Requires installing v1.19 or later from Pimoroni: https://github.com/pimoroni/pimoroni-pico/releases/

ae5au commented 2 years ago

I thought NTP was working as part of the Pico W networking support, but turns out that was Thonny setting the time from my workstation!

ae5au commented 2 years ago

UPDATE: I now have NTP working using the example ESP8266 module code from MicroPython with a slight modification.

Still needs error handling for Wi-Fi and the NTP process.

ae5au commented 2 years ago

I added error-handling and retry for Wi-Fi and NTP connections. Time is only set at startup just like the current RTC support. Possible future enhancements could be:

PR #14 submitted.