Skip to content

Instantly share code, notes, and snippets.

View skittleson's full-sized avatar

Spencer Kittleson skittleson

View GitHub Profile
@skittleson
skittleson / index.py
Last active September 23, 2025 21:36
esp32s3 xiao sense OV5640 cam
import network
import urequests
import utime as time
from camera import Camera, GrabMode, PixelFormat, FrameSize
from machine import Pin, RTC, unique_id, deepsleep, sleep
import machine
import ubinascii
import sys
import time
import gc
@skittleson
skittleson / batch_proceess_color.py
Created August 29, 2025 22:54
batch process images for color eink
# encoding: utf-8
import sys
import os.path
from PIL import Image
directory = 'pics'
def main():
import requests
import os
import sys
import json
from wyze_sdk import Client
from wyze_sdk.errors import WyzeApiError
client = Client(token=sys.argv[1])
try:
import datetime
import requests
import json
from msal import PublicClientApplication
# Replace with your client ID from Azure App Registration
CLIENT_ID = "a9641399-2aad-43f8-aac1-5bcccbcc004b" # No need for client secret
AUTHORITY = "https://login.microsoftonline.com/common" # Supports personal and work accounts
SCOPES = ["https://graph.microsoft.com/Mail.Read"]
*.log
*.csv
__pycache__
import network
import socket
import time
# Step 1: Set Up AP Mode
def access_point(ssid, password = None):
import network
wlan = network.WLAN(network.AP_IF)
wlan.config(essid=ssid)
# scan for temp sensors in area.
import aioble
import uasyncio as asyncio
from ubluetooth import UUID
import bluetooth
import struct
__TIMEOUT_MS = 30000
__SCAN_TIM_MS = 20000
@staticmethod
def mark_for_deletions(from_email_to_delete: str):
client = __get_client()
client.select_folder("INBOX")
action_on_uids = []
for i in range(1, 3):
start = (datetime.now() + timedelta(days=-(30 * i))
).strftime('%d-%b-%Y')
end = (datetime.now() + timedelta(days=-((30 * i)-30))
).strftime('%d-%b-%Y')
import utime as time
from machine import UART,Pin
gps_module = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))
time_zone = -7
def read_until_char(uart, target_char='$'):
received_data = b'' # Initialize an empty byte string to store received data
while True:
if uart.any(): # Check if there's data available to read
import wsl_shell
import simpleaudio as sa
import os
class GenerativeAudioService:
"""
Create and manage playback with text to speech audio files
"""