Skip to content

Instantly share code, notes, and snippets.

@dglaude
dglaude / code.py
Last active February 16, 2021 00:07 — forked from wildestpixel/code.py
Pimoroni Pico Display Pack Circuitpython 6.2b1 bitmap gradient
"""
I don't have a Pico Explorer from Pimoroni, but I have a MiniPiTFT 240x240 from @adafruit
https://www.adafruit.com/product/4484
So with a little bit of wiring I can now run code on the Pico made for the Pico Explorer screen.
Fork from https://gist.github.com/wildestpixel/70208a0581d30bcee7b328a408e4ef9c just edited for 240x240.
adapted from http://helloraspberrypi.blogspot.com/2021/01/raspberry-pi-picocircuitpython-st7789.html
"""
import os
@dglaude
dglaude / code.py
Last active May 17, 2022 12:51 — forked from wildestpixel/code.py
Pimoroni Pico Display Pack Circuitpython 6.2 b1 running code
"""
adapted from http://helloraspberrypi.blogspot.com/2021/01/raspberry-pi-picocircuitpython-st7789.html
"""
# Adapted for 240x240 MiniPiTFT from @Pimoroni
# Based on https://gist.github.com/wildestpixel/86ac1063bc456213f92972fcd7c7c2e1
# Found thanks to https://www.recantha.co.uk/blog/?p=20820&
import os
import board
@dglaude
dglaude / code.py
Created February 1, 2021 21:31 — forked from antonizoon/code.py
bb10keyboard_hid
# based on the example here, needs the same libraries https://github.com/arturo182/keyboard_featherwing_sw/tree/master/circuitpython
# also drop in the adafruit_hid library. basically just added keyboard send ability when it displays to the screen
# as per the README: https://github.com/adafruit/Adafruit_CircuitPython_HID
#
# HID Keyboard functionality could be improved. Currently it sends the current line to the UART Output terminal as a log
# but it might be better to just remove the UART functionality as it adds lag.
from bbq10keyboard import BBQ10Keyboard, STATE_PRESS, STATE_RELEASE, STATE_LONG_PRESS
from adafruit_display_text.label import Label
from adafruit_display_shapes.rect import Rect
import adafruit_ili9341
@dglaude
dglaude / code.py
Created February 1, 2021 21:31 — forked from antonizoon/code.py
bb10keyboard_hid
# based on the example here, needs the same libraries https://github.com/arturo182/keyboard_featherwing_sw/tree/master/circuitpython
# also drop in the adafruit_hid library. basically just added keyboard send ability when it displays to the screen
# as per the README: https://github.com/adafruit/Adafruit_CircuitPython_HID
#
# HID Keyboard functionality could be improved. Currently it sends the current line to the UART Output terminal as a log
# but it might be better to just remove the UART functionality as it adds lag.
from bbq10keyboard import BBQ10Keyboard, STATE_PRESS, STATE_RELEASE, STATE_LONG_PRESS
from adafruit_display_text.label import Label
from adafruit_display_shapes.rect import Rect
import adafruit_ili9341
@dglaude
dglaude / code.py
Created November 22, 2020 00:12 — forked from ladyada/code.py
CircuitPython Countdown for MagTag Demo
import sys
import time
import board
import wifi
import socketpool
import adafruit_requests
import ssl
import rtc
import displayio
import terminalio