Skip to content

Instantly share code, notes, and snippets.

View vwillcox's full-sized avatar
🏠
Working from home

Vincent Willcox vwillcox

🏠
Working from home
View GitHub Profile
@vwillcox
vwillcox / weather.py
Created February 5, 2023 12:09
Galactic Unicorn Current Weather Display
try:
import urequests as requests
except:
import requests
try:
import ujson as json
except:
import json
@vwillcox
vwillcox / weather2.py
Last active January 25, 2025 11:05
A Threaded weather and clock display for the #Pimoroni #GlacticUnicorn
import urequests as requests
import json
import network
import secrets
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY
from galactic import GalacticUnicorn
import jpegdec, math, ntptime, time
import _thread
blink=0
@vwillcox
vwillcox / code.py
Created September 24, 2024 19:17
Some code to allow me to Control Farm Together 2 with the Keybow2040 from Pimoroni
# SPDX-FileCopyrightText: 2021 Sandy Macdonald
#
# SPDX-License-Identifier: MIT
# A simple example of how to set up a keymap and HID keyboard on Keybow 2040.
# You'll need to connect Keybow 2040 to a computer, as you would with a regular
# USB keyboard.
# Drop the `pmk` folder
@vwillcox
vwillcox / main.py
Last active November 16, 2024 09:51
A Simple script in my journey to allow me to Cross post between BlueSky and Mastodon. (Repost)
#!/usr/bin/env python3
from atproto import Client, client_utils
import requests, argparse
import apis
accountname = apis.masto_account_name
accessToken = apis.masto_accessToken
bskyaccount = apis.bsky_account_name
bskypassword = apis.bsky_account_password