Skip to content

displayio and SPI conflict #1612

Closed
@jerryneedell

Description

@jerryneedell

There appears to be some conflict with displayio and SPI.
I have a TFT featherewing on a Feather_m4_express ( same issue on a particle xenon)
and if I run the stmpe610_simpletest which reads the TFT touch screen it works normally as long as I have not configured displayio first. If set up diaplayio -- so the REPL is being echoed to the screen, and then try the stmpe610_simpletest, it crashes.

PR #1604 had no impact on this -- it behaved the same with or without it.

normal run

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-beta.2-142-gced37c100 on 2019-03-02; Adafruit Feather M4 Express with samd51j19
>>> import stmpe610_simpletest
Go Ahead - Touch the Screen - Make My Day!
(1095, 2189, 62)
(1173, 2340, 21)
(1141, 2350, 25)

now configure displayio and reboot with REPL on display
and repeat

>>> import display

soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-beta.2-142-gced37c100 on 2019-03-02; Adafruit Feather M4 Express with samd51j19
>>> import stmpe610_simpletest
Go Ahead - Touch the Screen - Make My Day!
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "stmpe610_simpletest.py", line 9, in <module>
  File "adafruit_stmpe610.py", line 230, in buffer_empty
  File "adafruit_stmpe610.py", line 178, in _read_byte
  File "adafruit_stmpe610.py", line 308, in _read_register
  File "adafruit_stmpe610.py", line 304, in _read_register
RuntimeError: Function requires lock
>>> 



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions