Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Commit d8dde6c

Browse files
Add 'FBTFT_DEVICE_ROTATE' parameter to the /etc/init.d/M80ssd2119 script (configured via the new /etc/default/M80ssd2119 file).
1 parent f00c9cc commit d8dde6c

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/media/config/etc/default/M80ssd2119

OS/buildroot/overlay/etc/init.d/M80ssd2119

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
#!/bin/sh
2-
if [ -r /etc/default/rcS ]
3-
then
4-
. /etc/default/rcS
2+
if [ -r /etc/default/M80ssd2119 ]; then
3+
. /etc/default/M80ssd2119
54
else
6-
echo "/etc/default/rcS not found."
5+
echo "/etc/default/M80ssd2119 not found."
6+
fi
7+
if [ -z "$FBTFT_DEVICE_ROTATE" ]; then
8+
FBTFT_DEVICE_ROTATE=0
9+
fi
10+
11+
if [ "$FBTFT_DEVICE_ROTATE" -eq 180 ]; then
12+
OUTPUT_CONTROL=0x72EF
13+
else
14+
OUTPUT_CONTROL=0x30EF
715
fi
816

917
FBTFT_DEVICE_MODULE="fbtft_device.ko"
1018
FLEXFB_MODULE="flexfb.ko"
11-
INIT=-1,0x0028,0x0006,-1,0x0000,0x0001,-1,0x0010,0x0000,-1,0x0001,0x30EF,-1,0x0002,0x0600,-1,0x0003,0x6A38,-1,0x0011,0x6E70,-1,0X000F,0x0000,-1,0X000B,0x5308,-1,0x000C,0x0003,-1,0x000D,0x000A,-1,0x000E,0x2E00,-1,0x001E,0x00BE,-1,0x0025,0xA000,-1,0x0026,0x7800,-1,0x004E,0x0000,-1,0x004F,0x0000,-1,0x0012,0x08D9,-1,0x0030,0x0000,-1,0x0031,0x0104,-1,0x0032,0x0100,-1,0x0033,0x0305,-1,0x0034,0x0505,-1,0x0035,0x0305,-1,0x0036,0x0707,-1,0x0037,0x0300,-1,0x003A,0x1200,-1,0x003B,0x0800,-1,0x0007,0x0033,-1,0x0022,0x0000,-3
19+
INIT=-1,0x0028,0x0006,-1,0x0000,0x0001,-1,0x0010,0x0000,-1,0x0001,$OUTPUT_CONTROL,-1,0x0002,0x0600,-1,0x0003,0x6A38,-1,0x0011,0x6E70,-1,0X000F,0x0000,-1,0X000B,0x5308,-1,0x000C,0x0003,-1,0x000D,0x000A,-1,0x000E,0x2E00,-1,0x001E,0x00BE,-1,0x0025,0xA000,-1,0x0026,0x7800,-1,0x004E,0x0000,-1,0x004F,0x0000,-1,0x0012,0x08D9,-1,0x0030,0x0000,-1,0x0031,0x0104,-1,0x0032,0x0100,-1,0x0033,0x0305,-1,0x0034,0x0505,-1,0x0035,0x0305,-1,0x0036,0x0707,-1,0x0037,0x0300,-1,0x003A,0x1200,-1,0x003B,0x0800,-1,0x0007,0x0033,-1,0x0022,0x0000,-3
1220
BACKLIGHT_GPIO=900
1321

1422
case "$1" in

0 commit comments

Comments
 (0)