Skip to content

Instantly share code, notes, and snippets.

View russhughes's full-sized avatar

Russ Hughes russhughes

  • One World Telecommunications
View GitHub Profile
@samneggs
samneggs / cubes.py
Created January 16, 2022 23:08
Solid spinning cubes on textured background
from LCD_3inch5 import LCD_3inch5
from machine import Pin
import framebuf
from time import sleep_ms, sleep_us, ticks_diff, ticks_us, sleep
from micropython import const
import array
from usys import exit
import gc
#from random import randint
from math import sin,cos,pi,radians
@samneggs
samneggs / cave.py
Created January 3, 2023 02:04
Cave Adventure game on Pi Pico in MicroPython and Assembly
# cave
from machine import Pin,SPI,PWM,ADC
import framebuf, gc
import time, array
from time import sleep, ticks_us, ticks_diff
from lcd_1_8 import LCD_1inch8
from random import randint
from sys import exit
import _thread
from uctypes import addressof
@samneggs
samneggs / missile_command.py
Last active February 27, 2023 07:08
Missile Command game in MicroPython on Pi Pico
# Missile Command game
from machine import Pin,SPI,PWM,ADC, Timer, reset, soft_reset
import framebuf, gc
import time, array, _thread
from time import sleep, ticks_us, ticks_diff, ticks_ms
from lcd_1_8 import LCD_1inch8
from random import randint
from sys import exit
@samneggs
samneggs / Centipede.py
Created June 28, 2023 14:31
Centipede game on PI Pico in MicroPython
# Centipede
import centi_splash
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
import gc, _thread, array
@adtac
adtac / Dockerfile
Last active May 28, 2024 01:38
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3