3corey2
Posts: 85
Joined: Sun Feb 15, 2015 2:59 am

display_rotate=2 in /boot/config.txt

Sun Mar 08, 2015 7:18 pm

what? i have the pi2 with a waveshare b32 tft lcd and i can not find any rotate stuff in the code. where is this magic display_rotate? i dont see it... if any1 knows how to rotate their pi2 screen post some code plz.
ras pi 2, gotta love it.

DirkS
Posts: 10018
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: display_rotate=2 in /boot/config.txt

Sun Mar 08, 2015 9:53 pm

Where did you get the driver from?

If you're using the new fbtft driver with device tree enabled then you would probably use something like

Code: Select all

dtoverlay=xxxx,rotate=2
where xxx is the name of the overlay.

If you load the driver in /etc/modules then you would add the 'rotate' to the driver / module name (or use a separate conf file).

And if you're looking for the source code for fbtft: see https://git.kernel.org/cgit/linux/kerne ... ng-testing

Return to “General programming discussion”