execuc / u2if

USB to interfaces implementing MicroPython "machine" module functionalities on a computer.
Other
159 stars 28 forks source link

SPI write_readinto Not implemented - adafruit_epd #13

Open markbirss opened 1 year ago

markbirss commented 1 year ago

Hi, im having issue with BLINKA_U2IF vs BLINKA_FT232H, adafruit_epd gives error on U2IF - SPI write_readinto Not implemented ?

Using example based on https://github.com/adafruit/Adafruit_CircuitPython_EPD/blob/main/examples/epd_blinka.py

Works fine on BLINKA_FT232H

user@uD3H:~/e-ink$ export BLINKA_U2IF=1; python3 pico_u2if_eink.py
Creating display
Clear buffer
Draw Rectangles
Draw lines
Draw text
Traceback (most recent call last):
  File "/home/user/e-ink/pico_u2if_eink.py", line 81, in <module>
    display.display()
  File "/home/user/.local/lib/python3.10/site-packages/adafruit_epd/epd.py", line 81, in display
    self.power_up()
  File "/home/user/.local/lib/python3.10/site-packages/adafruit_epd/ssd1680.py", line 132, in power_up
    self.command(_SSD1680_SW_RESET)
  File "/home/user/.local/lib/python3.10/site-packages/adafruit_epd/epd.py", line 170, in command
    ret = self._spi_transfer(cmd)
  File "/home/user/.local/lib/python3.10/site-packages/adafruit_epd/epd.py", line 187, in _spi_transfer
    self.spi_device.write_readinto(self._spibuf, self._spibuf)
  File "/usr/local/lib/python3.10/dist-packages/busio.py", line 396, in write_readinto
    return self._spi.write_readinto(
  File "/usr/local/lib/python3.10/dist-packages/adafruit_blinka/microcontroller/rp2040_u2if/spi.py", line 58, in write_readinto
    rp2040_u2if.spi_write_readinto(
  File "/usr/local/lib/python3.10/dist-packages/adafruit_blinka/microcontroller/rp2040_u2if/rp2040_u2if.py", line 375, in spi_write_readinto
    raise NotImplementedError("SPI write_readinto Not implemented")
NotImplementedError: SPI write_readinto Not implemented
markbirss commented 1 year ago

https://github.com/adafruit/Adafruit_CircuitPython_EPD/issues/60#issuecomment-1435710991