Skip to content

Instantly share code, notes, and snippets.

View MadMaxMcKinney's full-sized avatar

Max McKinney MadMaxMcKinney

View GitHub Profile
@MadMaxMcKinney
MadMaxMcKinney / style.css
Created June 13, 2020 03:22
Stylish - Dark Nest
.navbar--wrapper_1t_ {
background: #1c2539;
}
@MadMaxMcKinney
MadMaxMcKinney / meeting-display-matrixportal.py
Last active November 14, 2020 04:11
A simple 'busy light' made for Adafruit MatrixPortal for displaying your meeting status to those outside your home office.
# Author: Max McKinney
# Description: A simple 'busy light' for displaying your meeting status to those outside your home office.
import time
import random
import board
import terminalio
import displayio
import neopixel
from digitalio import DigitalInOut, Direction, Pull
@MadMaxMcKinney
MadMaxMcKinney / secrets.py
Created November 14, 2020 04:16
Example CircuitPython secrets file for Wifi connection
secrets = {
'ssid' : 'your_wifi_ssid',
'password' : 'your_wifi_password',
'aio_username' : '_your_aio_username_',
'aio_key' : '_your_big_huge_super_long_aio_key_'
}
# Feed needs to match your feed name. This feed represents the current True or False status of being in a meeting. AKA being busy or not.
meetingFeed = matrixportal.get_io_feed("meeting-status.inmeeting")
meetingValue = meetingFeed['last_value']
# Feed needs to match your feed name. This feed represents the current True or False status of having the display off or on.
isDimmedFeed = matrixportal.get_io_feed("meeting-status.isdimmed")
isDimmedValue = isDimmedFeed['last_value']