This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import board | |
import wifi | |
import socketpool | |
import adafruit_requests | |
import ssl | |
import rtc | |
import displayio | |
import terminalio |