Skip to content

Instantly share code, notes, and snippets.

View nmsderp's full-sized avatar
💻
working on an operating system

nmsderp

💻
working on an operating system
View GitHub Profile
Raspberry Pi Pico W calculating the fibonacci sequence of 250 terms:
270Mhz (overclock): 13 seconds
130Mhz (stock speed): 23 seconds
100Mhz (underclock): 27 seconds
50Mhz (big underclock): 51 seconds
Raspberry Pi Pico W calculating the fibonacci sequence of 375 terms:
270Mhz (overclock): 40 seconds
130Mhz (stock speed): 165 seconds
import machine
import time
import math
# 270 mhz your Pico MAY go to 300mhz!
# Not tested on Pico 2!
# If I get a Pico 2 I will make one that uses 1 Arm core and 1 RISC-V core
machine.freq(270000000)
def calculate_pi(n):