Touchscreen Kivy app for Raspberry Pi

[亡魂溺海] 提交于 2019-12-03 17:28:46

This will not works. SPI screen works on SPI which is controlled by your CPU: http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

Kivy use the GPU of the Raspberry Pi, not the SPI or X11. As my understanding, displaying an accelerated GLES application on SPI will not work.

Ie, you could confirm this behavior by executing any GLES software from command line outside X11

I found this to work by uncommenting the following line in /boot/config.txt

disable_overscan=1

then starting fbcp

fbcp &

and the running for example the showcase demo (I compile it for kivy for python3.4):

python3.4 kivy/examples/demo/showcase/main.py

Touch works, except that my y-axis is inverted.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!