The following commands (to get a small screen working) execute just fine if I type them in from the LXTerminal window while running Raspian on a raspberry Pi once my desktop is loaded:
- sudo modprobe spi-bcm2708
- sudo modprobe fbtft_device name=adafruitts rotate=90
- export FRAMEBUFFER=/dev/fb1
I'm new to Pi and Python, and after piecing together several forum posts, the best way I thought to do this would be to run a python script from the /etc/xdg/lxsession/LXDE/autostart config file- I just don't know what the python script should say to automaticlaly open a LXTerminal window and type in the commands?
Any help would be much appreciated, thanks!