Skip to content

Instantly share code, notes, and snippets.

View Crysknife007's full-sized avatar

Spike Snell Crysknife007

View GitHub Profile
@Crysknife007
Crysknife007 / code.py
Created July 23, 2022 19:49
Firefly Simulator for Pi Pico in Circuit Python
# Pi Pico Firefly Simulator
# By Spike Snell 2022
# Import what we need to run the onboard led
import time, board, pwmio, random, microcontroller
# Create a pseudorandom frequency
freq = random.randint(2000,200000)
# Set up the onboard led
@Crysknife007
Crysknife007 / displayCounter.ino
Created February 1, 2024 23:58
A simple counter for a tm1637 display.
// .---------------------------------------------------------.
// | Spike Snell - 2024 |
// | A simple counter for a tm1637 display. |
// | |
// | - The count is reset after a long press of the button. |
// `---------------------------------------------------------'
// Import the tm1637Display library from - https://github.com/avishorp/TM1637
#include <TM1637Display.h>