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 digitalio | |
import terminalio | |
import board | |
import displayio | |
import adafruit_il0398 | |
from babel.babelflash import FlashBabel | |
from adafruit_display_text import label | |
import time | |
# cs = digitalio.DigitalInOut(board.D4) |
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
spi = board.SPI() # Uses SCK and MOSI | |
epd_cs = board.D9 | |
epd_dc = board.D10 | |
epd_reset = board.A4 | |
epd_busy = board.A3 | |
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, | |
reset=epd_reset, baudrate=1000000) | |
DISPLAY_WIDTH = 400 | |
DISPLAY_HEIGHT = 300 |
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 digitalio | |
import terminalio | |
import board | |
import displayio | |
import adafruit_il0398 | |
from babel.babel import Babel | |
from adafruit_display_text import label | |
import time | |
# cs = digitalio.DigitalInOut(board.D6) |
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 adafruit_display_text.label | |
import board | |
import displayio | |
import framebufferio | |
import rgbmatrix | |
import terminalio | |
import time | |
displayio.release_displays() | |
matrix = rgbmatrix.RGBMatrix( | |
width=32, height=32, bit_depth=4, |
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 displayio | |
import busio | |
import terminalio | |
import digitalio | |
import time | |
from adafruit_display_text import label | |
from adafruit_st7735r import ST7735R | |
displayio.release_displays() |
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 busio | |
import displayio | |
import digitalio | |
import time | |
import terminalio | |
from adafruit_display_text import label | |
from adafruit_st7735R import ST7735R | |
displayio.release_displays() | |
spi = board.INTERNAL_SPI |
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
//SCK is not optional. MOSI and MISO are | |
for (uint i=0; i<sck_len;i++) { | |
if (mcu_spi_sck_list[i].pin == sck) { | |
uint j = 0; | |
if (miso != mp_const_none) { | |
for (j=0; j<miso_len;j++) { | |
RETRY: | |
if ((mcu_spi_miso_list[j].pin == miso) //only SCK and MISO need the same index | |
&& (mcu_spi_sck_list[i].spi_index == mcu_spi_miso_list[j].spi_index)) { | |
//store pins if not |
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
# GPS ---------------------------------------- | |
# Simple GPS module demonstration. | |
# Will wait for a fix and print a message every second with the current location | |
# and other details. | |
import time | |
import board | |
import busio | |
import adafruit_gps | |
# Define RX and TX pins for the board's serial port connected to the GPS. | |
# These are the defaults you should use for the GPS FeatherWing. |
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
#0 0x0804c6b2 in handle_epin_ints (dev=0x50000800, in_ep=0x50000900) at ../../lib/tinyusb/src/portable/st/synopsys/dcd_synopsys.c:645 | |
#1 0x0804c80c in OTG_FS_IRQHandler () at ../../lib/tinyusb/src/portable/st/synopsys/dcd_synopsys.c:702 | |
#2 <signal handler called> | |
#3 dcd_edpt_xfer (rhport=0 '\000', ep_addr=128 '\200', buffer=0x0, total_bytes=0) at ../../lib/tinyusb/src/portable/st/synopsys/dcd_synopsys.c:369 | |
#4 0x0804bc40 in dcd_set_address (rhport=0 '\000', dev_addr=6 '\006') at ../../lib/tinyusb/src/portable/st/synopsys/dcd_synopsys.c:243 | |
#5 0x080410a6 in process_control_request (rhport=0 '\000', p_request=0x2001f868) at ../../lib/tinyusb/src/device/usbd.c:396 | |
#6 0x08040e2c in tud_task () at ../../lib/tinyusb/src/device/usbd.c:296 | |
#7 0x080449d6 in usb_background () at ../../supervisor/shared/usb/usb.c:79 | |
#8 0x080452d6 in run_background_tasks () at background.c:51 | |
#9 0x08037356 in mp_execute_bytecode (code_state=0x2001f910, inject_exc=<optimized out>) at ../../py/vm.c:1103 |
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
#0 HAL_SPI_TransmitReceive (hspi=0x200021f0 <spi+4>, pTxData=0x2001fc8c "\377\377\377", pRxData=0x2001fc8c "\377\377\377", Size=3, Timeout=2) | |
at stm32f4/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c:1224 | |
#1 0x0804d8e6 in HAL_SPI_Receive (hspi=0x200021f0 <spi+4>, pData=0x2001fc8c "\377\377\377", Size=3, Timeout=2) at stm32f4/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c:915 | |
#2 0x08052a1a in common_hal_busio_spi_read (self=0x200021ec <spi>, data=0x2001fc8c "\377\377\377", len=3, write_value=255 '\377') at common-hal/busio/SPI.c:392 | |
#3 0x08040106 in transfer (command=0x2001fc5f "\237h\374\001 \233\001\004\b", command_length=1, data_in=0x0, data_out=0x2001fc8c "\377\377\377", data_length=3) | |
at ../../supervisor/shared/external_flash/spi_flash.c:63 | |
#4 0x08040156 in transfer_command (command=159 '\237', data_in=0x0, data_out=0x2001fc8c "\377\377\377", data_length=3) at ../../supervisor/shared/external_flash/spi_flash.c:73 | |
#5 0x0804019a in spi_flash_read_command (command=159 '\237', data=0x2001fc8c "\377\ |
NewerOlder