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
""" | |
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 |
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
// ==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== |
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
######################################################### | |
# | |
# 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 |
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
# 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 |