Skip to content

Instantly share code, notes, and snippets.

@samneggs
samneggs / astro3.py
Created August 29, 2023 23:41
Astro Miner game on PI Pico in MicroPython
# AstroMiner
from lcd_1_8 import LCD_1inch8
import machine
from machine import Pin, PWM
from uctypes import addressof
from time import sleep, ticks_us, ticks_diff, ticks_ms, sleep_ms
import gc, _thread, array
from sys import exit
from micropython import const
from random import randint