Skip to content

Instantly share code, notes, and snippets.

@dupontgu
dupontgu / code.py
Last active December 15, 2025 17:15
CircuitPython WiFi HTTP Sensor Template
import time
import wifi
import socketpool
import wifi
import mdns
from adafruit_httpserver import (GET, JSONResponse, Request, Server)
WIFI_SSID = "your-wifi"
WIFI_PASSWORD = "your-password"
POLL_INTERVAL_S = 31
@anecdata
anecdata / interfaces.txt
Last active July 29, 2025 18:40
CircuitPython data communication interfaces
EOM
@anecdata
anecdata / espnow_receiver.py
Last active August 6, 2025 00:02
CircuitPython example for Espressif ESP-NOW protocol
# SPDX-FileCopyrightText: 2023 anecdata
#
# SPDX-License-Identifier: MIT
import time
import traceback
import supervisor
import os
import rtc
import espnow