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
// 8x16 LED Matrix I2C FeatherWing | |
#define MATRIX_ADDR 0x70 // default; 0x71-0x77 with jumper changes | |
Adafruit_8x16minimatrix matrixDisplay = Adafruit_8x16minimatrix(); | |
setup() { | |
matrixDisplay.begin(MATRIX_ADDR); // void | |
} | |
void scrollMatrixString(String tString, int scrollDelay, int bright, int rot, int tSize, boolean tWrap, int tColor) { | |
int tLength = tString.length(); |
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, 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 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
""" | |
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 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
### 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 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
(1) USB power to ItsyBitsy M4 + ESP32 Breakout | |
typical output: | |
Retrying ESP32 connection | |
Error response to command | |
... | |
Retrying ESP32 connection | |
Timed out waiting for SPI char | |
... |
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 |
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
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
# 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
""" | |
This test will initialize the display using displayio | |
and draw a solid red background | |
""" | |
import board | |
import displayio | |
import time | |
print('Begin') |
OlderNewer