google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.62k stars 694 forks source link

Can the Vision Bonnet be moved to SPI1? #732

Open chadwallacehart opened 3 years ago

chadwallacehart commented 3 years ago

I would like to add a TFT display that uses the SPI interface to my Vision Kit. I was able to do this by putting the TFT display on spi1, however the refresh rate was very slow there (using Adafruit's adafruit-circuitpython-rgb-display.

I was hoping to make use of a framebuffer copying method from /dev/fb0 that is faster. This has the advantage that all the stock examples would work without modification.

Of the framebuffer copy methods, (fbcp-ili9341)[https://github.com/juj/fbcp-ili9341] is the only project I found that works with Raspian Buster. The project requires spi0 for fast DMA-based transfers and does not allow sharing of the SPI bus so I would need to move the Vision Bonnet to another SPI.

Is it possible to move the Vision Bonnet to SPI1 with some rewiring and possibly rebuilding of the drivers to use different pins?