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
| # General reference: https://docs.micropython.org/en/latest/rp2/quickref.html | |
| # Accelerometer library: https://github.com/adafruit/Adafruit_CircuitPython_LIS331 | |
| # Units (unless otherwise noted): | |
| # Length: inches | |
| # Time: minute | |
| # Speed: inches per minute | |
| from math import pi, sin, sqrt | |
| from collections import namedtuple |
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
| import pygame | |
| import math | |
| import itertools as it | |
| pygame.init() | |
| screen = pygame.display.set_mode((500, 500)) | |
| clock = pygame.time.Clock() | |
| running = True | |
| pos = (0, 0) |
OlderNewer