This file contains hidden or 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 adafruit_lps35hw | |
import adafruit_dps310 | |
import adafruit_shtc3 | |
""" | |
run, then ^C^D or re-save file to CIRCUITPY, | |
and line 42 (`sht =`) will fail: |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
# ESP32_GPIO_PINS: | |
# https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/blob/master/adafruit_esp32spi/digitalio.py | |
# 0, 1, 2, 4, 5, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, 33, 34, 35, 36, 39 | |
# | |
# Used for ESP32SPI | |
# 5, 14, 18, 23, 33 | |
# Avialable ESP32SPI Outputs (digital or PWM 'analog') with NINA FW >= 1.3.1 | |
# | |
# Adafruit ESP32 Breakout |
This file contains hidden or 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 hidden or 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 hidden or 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
re: https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/issues/11#issuecomment-483268050 |