Skip to content

Instantly share code, notes, and snippets.

View HowManyOliversAreThere's full-sized avatar
⛰️

Oliver HowManyOliversAreThere

⛰️
View GitHub Profile
@HowManyOliversAreThere
HowManyOliversAreThere / target_practice.py
Created August 23, 2023 12:04
T-Display-S3 MicroPython Target Practice game
"""
target_practice.py
An example application demonstrating the beautiful synergy between the LILYGO
T-Display-S3 and the Wii Nunchuk.
Just a simple target shooting game - use the targeting reticle to aim for the
red targets, and pull the trigger to get them!
Nunchuk is designed to be plugged into the STEMMA QT port via the STEMMA QT Wii
@HowManyOliversAreThere
HowManyOliversAreThere / Toggl Loader.user.js
Last active April 30, 2018 02:16
Tampermonkey userscript for loading a lot more time entries in the Toggl Timer (to aid with autocomplete)
// ==UserScript==
// @name Toggl Loader
// @namespace http://www.oliver-robson.tech/
// @version 1.1
// @description Makes it easier to Load A Bunch More time entries
// @author Oliver Robson
// @match https://www.toggl.com/app/timer
// @grant none
// ==/UserScript==
@HowManyOliversAreThere
HowManyOliversAreThere / serial-comms-example.py
Last active February 22, 2018 00:44
Generic Python serial comms example
#########################################################
#
# Generic Serial port comms script
#
# Shows how to open and interact with a serial device
#
# Notes:
# - Some devices need / use line ends (\r\n), check with your device
# - Some devices respond to every command, in which case you will have
# to readline after every command to clear the buffer
# Setup hardware
buttons = [setupButton(1), setupButton(2), setupButton(3), setupButton(4)]
leds = [setupLed(1), setupLed(2), setupLed(3), setupLed(4)]
# Configure variables
DELAY_SEC = 1.0
NUM_POLES = len(buttons)
# Each run through the main loop turns on a random LED and then waits
# for the appropriate button to be pressed