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 board | |
import time | |
from digitalio import DigitalInOut, Direction # , Pull | |
import neopixel | |
import random | |
led = DigitalInOut(board.D13) | |
led.direction = Direction.OUTPUT | |
# PyPortal and Feather M4 schematics show built-in NeoPixel is WS2812B |
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
### Keybase proof | |
I hereby claim: | |
* I am anecdata on github. | |
* I am anecdata (https://keybase.io/anecdata) on keybase. | |
* I have a public key ASD5V5yuw1bzDAc9GeoYelcE3wiOrKa3f9fbJM_O362I9Qo | |
To claim this, I am signing this object: |
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 board | |
import os | |
import gc | |
import time | |
import random | |
import displayio | |
from adafruit_display_shapes.rect import Rect | |
def overwrite_bitmap(xw, yh, gmin, gmax): | |
x = random.randrange(0, xw) |
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 board | |
import os | |
import busio | |
import digitalio | |
import displayio | |
import storage | |
import adafruit_sdcard | |
import adafruit_ili9341 | |
from adafruit_slideshow import PlayBackOrder, SlideShow, PlayBackDirection |
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
""" | |
This test will initialize the display using displayio | |
and draw a solid red background | |
""" | |
import board | |
import displayio | |
import time | |
print('Begin') |
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 os | |
import time | |
import board | |
import terminalio | |
import displayio | |
from adafruit_display_text.label import Label | |
from adafruit_ssd1675 import SSD1675 | |
from adafruit_il0373 import IL0373 | |
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
""" | |
PyPortal CP 4.0.0-beta.3 + adafruit-circuitpython-bundle-4.x-mpy-20190307 | |
Using esp32spi_localtime.py as a base, add in subsequent `wifi.get` calls to other websites. | |
Note that the original file did not use `reponse.close()`. | |
Test: | |
GET server headers from several different websites sequentially; examine server headers. | |
Between each fetch, call `response.close()` _and_ `response = None` |
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 board | |
import time | |
from digitalio import DigitalInOut | |
from adafruit_esp32spi import adafruit_esp32spi | |
from secrets import secrets | |
# AP connect helper | |
def esp_connect(): | |
esp_status = 255 | |
try: |
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 board | |
from digitalio import DigitalInOut | |
from adafruit_esp32spi import adafruit_esp32spi | |
def esp_reset(): | |
try: | |
esp.reset() | |
print('ESP Reset') | |
except RuntimeError as e: |
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 time | |
import board | |
import busio | |
import digitalio | |
import adafruit_requests as requests | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K | |
import adafruit_wiznet5k.adafruit_wiznet5k_socket as wiznet5k_socket | |
from adafruit_esp32spi import adafruit_esp32spi | |
import adafruit_esp32spi.adafruit_esp32spi_socket as esp_socket | |
from secrets import secrets |
OlderNewer