This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .---------------------------------------------------------. | |
// | 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> |
OlderNewer