Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5155

MicroPython • Re: How do you get a Pico W to sleep?

$
0
0
hippy, thanks for your work on this.

I still issues with your refactored solution.
I don't think it is an advantage that a user can have code that works on both chips.

Also, it only works now since we only have two chips: RP2040 and RP2350.
But what happens in the future when we also have: RP2560 and RP4780?
Future chips will likely have 3 or more sleep/wake registers.

I do like your function __Collect. I will make use of it if you agree.

Also, you pointed out that const() was the problem with including my two subclasses in a single file.
I will rework my code to use a single file and use __Collect.

Thanks!

Statistics: Posted by cpottle9 — Wed Jan 08, 2025 8:30 pm



Viewing all articles
Browse latest Browse all 5155

Trending Articles