This file contains hidden or 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
# Boulder Dash Pico2 | |
from st7796 import LCD_3inch5 | |
from gfx import Gfx | |
from machine import Pin, PWM, SPI | |
from uctypes import addressof | |
from time import sleep, sleep_ms, ticks_us, ticks_diff, ticks_ms | |
import gc, array, re, _thread | |
from random import randint, random | |
This file contains hidden or 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
from machine import Pin,SPI,PWM, freq, I2C | |
import framebuf | |
import time | |
from time import sleep_ms | |
import os | |
''' | |
GP2 CLK | |
GP3 DIN | |
GP5 CS x |
This file contains hidden or 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
# template | |
from lcd_1_8 import LCD_1inch8 | |
import machine, math | |
from machine import Pin, PWM, SPI | |
from uctypes import addressof | |
from time import sleep, ticks_us, ticks_diff, ticks_ms | |
import gc, _thread, array | |
from micropython import const | |
from random import randint | |
from math import sin,cos,tan,radians,sqrt |
This file contains hidden or 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
# minesweeper | |
from lcd_1_8 import LCD_1inch8 | |
import machine | |
from machine import Pin, PWM | |
from time import sleep, ticks_us, ticks_diff, ticks_ms | |
import gc, array | |
from sys import exit | |
from micropython import const | |
from random import randint |
This file contains hidden or 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
# Bubble Darts | |
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 |
This file contains hidden or 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
# snake_asm | |
from lcd_1_8 import LCD_1inch8 | |
import machine, math | |
from machine import Pin, PWM | |
from uctypes import addressof | |
from time import sleep, ticks_us, ticks_diff, ticks_ms | |
import gc, _thread, array | |
from sys import exit | |
from micropython import const | |
from random import randint |
This file contains hidden or 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
from time import sleep, ticks_us, ticks_diff, ticks_ms, sleep_ms | |
import gc | |
import _thread, array | |
from machine import Timer, Pin, PWM | |
from sys import exit | |
class Game_Sound: | |
def __init__(self): | |
# index,start,dur,pause,number, volume |
This file contains hidden or 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
# plasma | |
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 | |
from sys import exit | |
from micropython import const | |
from random import randint |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
# Tetris | |
import tetris_title | |
from lcd_1_8 import LCD_1inch8 | |
import machine | |
from machine import Pin, PWM, Timer | |
from uctypes import addressof | |
from time import sleep, ticks_us, ticks_diff, ticks_ms | |
import gc, _thread, array |
NewerOlder