waveshareteam / LCD-show

398 stars 179 forks source link

Using TFT 3.5'' with this library, disables SPI completely #38

Open mmzeynalli opened 3 years ago

mmzeynalli commented 3 years ago

Good day, Today I struggled with a problem, where I use a TFT display with Raspberry PI 3B+. In addition to this, I use SX1276 radio module, which also works with SPI protocol. Although I can use both of them separately, I could not use them both at the same time. The issue was that after the call of LCD35-show command is executed, after reboot, the SPI is disabled, and no spidev device can be found in /dev/ directory. Manually turning on SPI from raspi-config does not solve this issue. Is there any solution or at least any workaround to this problem?

DamianK77 commented 3 years ago

Same problem here, have you figured something out?

mmzeynalli commented 3 years ago

To be honest no, I had to change screen and use another one

DamianK77 commented 3 years ago

unknown (23) solved it by commenting this line (/boot/config.txt), as i have a hdmi display the touch still works

mmzeynalli commented 3 years ago

And can you use another SPI device?

DamianK77 commented 3 years ago

I was able to use the ADXL345 accelerometer connected to spi0 bus of rpi after commenting out this line, yes, previously it didn't work. This line is what seems to disable SPI

mmzeynalli commented 3 years ago

Perfect. Thank you!