SPI device already in use

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Posts: 26
Joined: Fri Jan 29, 2016 12:32 pm

SPI device already in use

Post by jedie » Wed Oct 03, 2018 11:39 am

A TFT or OLED over SPI can be only init one time. After this a spi = SPI(2) will raise SPI device already in use

What's is the best practise for this?

Currently i made a hard reset via machine.reset() if this happens...

Is there a way to init SPI() one time an reuse it on soft reset?!?

Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: SPI device already in use

Post by jickster » Wed Oct 03, 2018 6:13 pm

Go here

https://github.com/micropython/micropyt ... -426738256

It’s a bug.

Sent from my iPhone using Tapatalk Pro

Post Reply