Skip to content

Instantly share code, notes, and snippets.

/* Copyright 2021 REPLACE_WITH_YOUR_NAME
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
import board
from adafruit_ht16k33.segments import BigSeg7x4
import time
import touchio
# setup the 7 segment display
i2c = board.I2C()
display = BigSeg7x4(i2c)
display.brightness = 0.2
#!/usr/bin/env python
# coding: Latin-1
# Load library functions we want
from inputs import get_gamepad
from explorerhat import motor
import math
import time
from blinkt import set_clear_on_exit, set_pixel, show, set_brightness
@andywarburton
andywarburton / rover.py
Last active July 1, 2017 08:29
simple script for controlling motors and lights with piborg zero motor controller and a raspberry pi
#!/usr/bin/env python
# coding: Latin-1
# Load library functions we want
from inputs import get_gamepad
import piconzero as pz
import time
import sys
import random
import colorsys