Philip Howard
                                            Philip Howard
                                        
                                    The catch is that Badger 2040 doesn't rely on the not-great sleep states of the Pico, but rather cuts the power entirely. Connected battery or not, it'll lose the time...
Presumably this is because `main.py` is run at boot and trounces all the memory before you can get around to using it. I've started avoiding saving as `main.py` for this...
Sorry for the lack of response here. This is awesome, thank you, I just need to stop fighting fires and get 'round to trying & merging it!
The threshold for Light isn't very intuitive since it's given in raw counts and not the Lux value. We should probably figure out how to convert that. Anyway, here's an...
It won’t be easy because the D/C pin is set up in GPIO mode- so you’ll have to switch it between GPIO and SPI on the fly to talk to...
I (and, sorry for the many moons delay between responses) wonder if an example showing SPI setup on those pins using PIO would be helpful? Or even bit-banged. I know...
This might explain the `set_unix()` issue: https://github.com/pimoroni/pimoroni-pico/blob/37209cd0c005c8c186fa63ab1c06ec714f2f525a/drivers/rv3028/rv3028.cpp#L385-L401 It looks like the unix timestamp is completely independent from the rest of the RTC... hooookaay! That's a gotcha. I think we might...
The RP2040 already has an RTC built-in. See: https://github.com/raspberrypi/pico-examples/blob/master/rtc/hello_rtc/hello_rtc.c
My uh... unothadox solution was - albeit using MicroPython (where it's done automagically) - to allow the time to be set via a host computer, then use a battery to...