via HTTPie
$ http http://circuitpython.local
HTTP/1.1 307 Temporary Redirect
Access-Control-Allow-Credentials: true
via HTTPie
$ http http://circuitpython.local
HTTP/1.1 307 Temporary Redirect
Access-Control-Allow-Credentials: true
# SPDX-FileCopyrightText: Copyright (c) 2022 Randall Bohn (dexter) | |
# | |
# SPDX-License-Identifier: MIT | |
import math | |
import time | |
from vectorio import Circle | |
import displayio | |
import board | |
display = board.DISPLAY |
actual | prediction | n | |
---|---|---|---|
apple | apple | 445 | |
banana | apple | 0 | |
date | apple | 0 | |
fig | apple | 0 | |
guava | apple | 0 | |
mango | apple | 0 | |
orange | apple | 0 | |
pear | apple | 0 | |
apple | banana | 1 |
# SPDX-FileCopyrightText: Copyright (c) 2022 Randall Bohn (dexter) | |
# | |
# SPDX-License-Identifier: MIT | |
"Random Turtle Art" | |
import random | |
from adafruit_turtle import turtle, Color | |
colors = [Color.RED, Color.YELLOW, Color.GREEN] | |
def walk(t,n): | |
t.forward(n) |
import asyncio | |
import board | |
import time | |
import usb_midi | |
import adafruit_midi | |
from adafruit_midi.note_on import NoteOn | |
from adafruit_midi.note_off import NoteOff | |
from neopixel import NeoPixel | |
from adafruit_seesaw.seesaw import Seesaw | |
from adafruit_seesaw.analoginput import AnalogInput |
Turns the Adafruit ATtiny817 breakout into a Morse code output peripheral. | |
All registers are 16 bits. | |
Registers | |
00 Character Rate | |
01 Word Rate | |
02 Frequency | |
03 Duty Cycle | |
Busy pin |
# SPDX-FileCopyrightText: Copyright (c) 2022 Randall Bohn (dexter) | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
# View random products from Adafruit on the PyPortal | |
from random import randrange | |
from adafruit_pyportal import PyPortal | |
base_url = "https://adafruit.com/api/product/" | |
portal = PyPortal( |
# SPDX-FileCopyrightText: Copyright (c) 2022 Randall Bohn (dexter) | |
# | |
# SPDX-License-Identifier: MIT | |
# A little fun in the Funhouse | |
import time | |
import board | |
import digitalio | |
import displayio | |
import vectorio | |
from adafruit_displayio_layout.layouts.grid_layout import GridLayout |
Connect UART and SPI0 between to Pi devices. | |
[3v3] :: [5v] | |
GPIO2 [CTS] :: [5v] | |
GPIO3 [RTS] :: [Gnd] | |
GPIO4 [TXD?] :: GPIO14 [TXD*] | |
[Gnd] :: GPIO15 [RXD*] | |
GPIO17 [RTS] :: GPIO18 | |
GPIO27 :: [Gnd] |
# SPDX-FileCopyrightText: Copyright (c) 2022 Randall Bohn (dexter) | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
# Dice Roller | |
# Runs on Feather Bluefruit Sense nRF52840 | |
# faces: a 336x48 sprite sheet | |
import board | |
import time | |
import displayio |