Search found 5 matches
- Fri Apr 30, 2021 6:08 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico Micropython overclocked twice (250MHz) works fine
- Replies: 13
- Views: 14894
Re: Pico Micropython overclocked twice (250MHz) works fine
That firmware was linked in the opening post in this thread. Your suggestion solved the issue, thanks! (interestingly, it works for generic firmware: for firmware.250MHZ.uf2, machine.freq expects no arguments, i.e., can only be used to read the clock rate, not to modify it). Thanks again for your he...
- Thu Apr 29, 2021 10:43 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico Micropython overclocked twice (250MHz) works fine
- Replies: 13
- Views: 14894
Re: Pico Micropython overclocked twice (250MHz) works fine
Programs are indeed running x2 faster with firmware.250MHZ.uf2. Thanks for providing this! One observation: this is true if the program is launched from Thonny (Thonny can then be closed and the program keeps running fast). However, the same program saved as main.py and launched by just powering the...
- Thu Apr 29, 2021 2:55 am
- Forum: General Discussion and Questions
- Topic: method __missing__ not working for dictionary in Conway's game of life
- Replies: 2
- Views: 1547
Re: method __missing__ not working for dictionary in Conway's game of life
For reference, I solved the issue by dropping __missing__ and using instead
A similar approach with __missing__ did not work. Whatevs.
Code: Select all
def __getitem__(self, key):
return self.get(key,0)
- Wed Apr 28, 2021 3:03 pm
- Forum: General Discussion and Questions
- Topic: method __missing__ not working for dictionary in Conway's game of life
- Replies: 2
- Views: 1547
Re: method __missing__ not working for dictionary in Conway's game of life
PS: in another forum someone tested the code against CPython, and the error was not reproduced. If this is micropython specific, why is there no complain when invoking the __missing__ method, but instead it just does not work? Unfortunately the information about micropython's treatment of dictionari...
- Tue Apr 27, 2021 4:30 pm
- Forum: General Discussion and Questions
- Topic: method __missing__ not working for dictionary in Conway's game of life
- Replies: 2
- Views: 1547
method __missing__ not working for dictionary in Conway's game of life
Apologies for my ignorance, I am completely new to micropython. As such my first foray is trying to implement code for Conway's game of life on a Raspberry Pi Pico using an 128x128 oled. I figured out how to do this using "brute force" (i.e., 128x128 matrices) but the optimized speed, even overclock...