Closed bill88t closed 3 days ago
well you def shouldnt be able to de'init it since its still being used by the TFT :) but should not hardcrash either
Perhaps it would be best to have a check inside of the SPI type that prohibits it from being deinitialised. Having that exposed only to the C api could allow circuitpy to alloc it for "system usage" and prohibit it's deinit. Shall I go and give it a try?
gooooood question - im going to let @tannewt or @jepler decide who/where it should be fixed :)
Seems to me that the best way to fix is to have displayio check for deinit SPI before using it. If it is, then displayio can deinit itself.
CircuitPython version
Code/REPL
Behavior
Description
No response
Additional information
No response