Skip to content

Instantly share code, notes, and snippets.

@jackleonard
jackleonard / trueorfalseCircuitPlayground.py
Last active March 17, 2020 12:09
Quick and Dirty implementation of simple question and answer game using circuit playground as feedback. Built to experiment neopixel control and animation with circuitplayground.
"""This is a simple 4 question game example highlighting use of circuitplaygrounds neopixels"""
from adafruit_circuitplayground import cp
import math
import time
green = (0, 200, 0)
red = (200, 0, 0)
purple = (150, 0, 100)
blue = (0, 0, 200)
body{
margin: 0;
font-family: "Helvetica", "Times New Roman", Times, serif;
background-color: #dbe4ee;
margin: 2em 4em 2em 4em;
}
header{
background-color: #A8D5FF;
padding: .2em 0em .2em 0em;
// Color palette
const colors = {
white: "#ffffff",
ultramarine: "#2501c5",
red: "#f00000",
tomato: "#dc281e",
greyish_brown: "#424242",
barney: "#9a12b3",
blueberry: "#663399",
dark_cyan: "#079493",

Keybase proof

I hereby claim:

  • I am jackleonard on github.
  • I am jackleonard (https://keybase.io/jackleonard) on keybase.
  • I have a public key whose fingerprint is 5E1D 2339 EFC4 413B 395D 191B 25C0 A74C 6450 A802

To claim this, I am signing this object: