Skip to content

Instantly share code, notes, and snippets.


Michael Horne recantha

View GitHub Profile
import time
import board
from digitalio import DigitalInOut, Direction, Pull
import pwmio
from analogio import AnalogIn
led1 = pwmio.PWMOut(board.GP7, frequency=5000, duty_cycle=0)
led2 = DigitalInOut(board.GP8)
led2.direction = Direction.OUTPUT
# AMG8833 thermal camera on an ILI9341 320x240 screen
# Michael Horne, based on Jan Goolsbey's code for Adafruit
import time
import board
import displayio
import busio
from simpleio import map_range
from adafruit_display_text.label import Label
# This is the code from:
# On a Raspberry Pi Pico, WHICH DOES NOT HAVE I2S... Distortion aside, this sounds correct.
# How is that possible?
import time
import array
import math
import audiocore
import board
import audiobusio
recantha / gist:01723d8ad894b54a8b17edd7ce90f8b1
Last active May 25, 2021
Conway's Game of Life for the Raspberry Pi Pico with Pimoroni Pico Scroll pack
View gist:01723d8ad894b54a8b17edd7ce90f8b1
# Conway's Game of Life
# Converted by Michael Horne from Steve Baines' Pico Unicorn pack example (Thanks to Tony Goodhew for spotting!)
# 14 Feb 2021 - Pimoroni UF2 0.0.7
import picoscroll as pico_addon
import random
import time