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
# Time libraries | |
import rtc | |
import time | |
import alarm # for sleep and deep sleep | |
# Adafruit hts221 and supporting libraries | |
import board | |
import busio | |
import adafruit_hts221 # this library is dependent on adafruit_bus_device and adafruit_register |
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
import time | |
import board | |
import neopixel | |
from adafruit_button import Button | |
from adafruit_pyportal import PyPortal | |
from adafruit_bitmap_font import bitmap_font | |
# Define colors | |
colors = [ | |
{'name': "1900K", 'color': (255, 147, 41)}, # Candle |
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
{ | |
"lat": 29.58, | |
"lon": -98.41, | |
"timezone": "America/Chicago", | |
"timezone_offset": -21600, | |
"current": { | |
"dt": 1607192444, | |
"sunrise": 1607174084, | |
"sunset": 1607211279, | |
"temp": 48.22, |
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
import board | |
import displayio | |
import adafruit_imageload | |
from adafruit_display_text.label import Label | |
from adafruit_bitmap_font import bitmap_font | |
from adafruit_matrixportal.matrix import Matrix | |
from reshader import Reshader | |
matrix = Matrix(width=64, height=32, bit_depth=6) | |
display = matrix.display |
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
from time import localtime, monotonic | |
from json import loads | |
from board import SCL, SDA, NEOPIXEL, A0 | |
from busio import I2C | |
from neopixel import NeoPixel | |
from displayio import Group, Bitmap, Palette, TileGrid | |
from adafruit_vcnl4040 import VCNL4040 | |
from adafruit_imageload import load | |
from adafruit_display_text.label import Label | |
from adafruit_bitmap_font.bitmap_font import load_font |
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
param ( | |
[System.String]$LogFile = "C:\Temp\IntuneLogs\WindowsAppsUninstall.log", | |
$apps = ( | |
"Microsoft.3DBuilder", | |
"Microsoft.BingWeather", | |
"Microsoft.Messaging", | |
"Microsoft.Microsoft3DViewer", | |
"Microsoft.MicrosoftOfficeHub", | |
"Microsoft.MicrosoftSolitaireCollection", | |
"Microsoft.MixedReality.Portal", |
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
import time | |
import board | |
from adafruit_matrixportal.matrixportal import MatrixPortal | |
DEBUG = False | |
TIME24H = False | |
# --- Display setup --- | |
matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, bit_depth=4, debug=DEBUG, width=64, height=32) |
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
"""Monitor customisable temperature and humidity ranges, with an optional audible alarm tone.""" | |
# Modification to allow changing between degrees Fahrenheit and Celsius | |
# Original source: | |
# https://github.com/adafruit/Adafruit_CircuitPython_CLUE/blob/master/examples/clue_temperature_humidity_monitor.py | |
from adafruit_clue import clue | |
from time import sleep | |
# Set desired temperature range in degrees Celsius. | |
min_temperature = 24 |