Jump to content

Display ili9341 on orange pi zero armbian


uriukti

Recommended Posts

Dear colleagues, good afternoon. I have 3 problems with the display. I have a orange pi zero. Installed armbian. I set the 2.8-inch display ili9341 spi for instructions, all works very well, but ... expansion of the display - 320x240. But the system is set up as 640x480. Font on the console - Terminus framebufer 6x12. And I am looking for a smaller. Help me please. I want to make the setting expand in the system - 320x240. Font still less. And it passes the wrong color, and I want to make the right color.

Link to comment
Share on other sites

I'm a musician and I love sound. I was always interested in linux and I wanted to learn it. But I could not sit down at the computer. And now my dream to learn it can come true. I want to build myself the smallest, real pocket linux computer with a console. I do not need a GUI. I want to learn linux, its commands, bash, console programs and write it on this computer. And also record a sound with it. I do not know linux well today, but I can adjust everything according to the instructions. So then here to study linux. )

Link to comment
Share on other sites

good luck, im on linux completely for couple of years, its not been easy but i have adapted my needs to the universal operating system
i myself ordered an orange pi for the portability

 

if you want to learn linux, i think it would be more convenient to just use a bootable usb flash drive and x86 pc's (laptop/desktop with intel/amd)

the main reason being that x86 architecture is better supported, and with the right distro, you can just boot up the usb on any pc, and have drivers for any device

 

on x86 there are livecd-isos (wich you can boot without installing, even from usb), dont know if theyre available for arm architecture

but progress is made on arm too, and hopefully soon, it gets the same support as x86

 

but the most important advice is to keep searching, keep asking, and never give up

its not hard to learn, you just need to know where to ask

Link to comment
Share on other sites

Yes, my display work very good.  But it has very big size in system. It is 640x480 in system. But my display is 320x240. I must change this size to 320x240 in system. For my display. And i want change size of text from 6x12 to 6x8 or 6x6 if this posible. 

Link to comment
Share on other sites

Are you running the graphical windows environment (X windows) on this display and you need to customize it to make it usable, or are you using the display as a text console and you'd like to get more text on the screen?

Link to comment
Share on other sites

On 2017/4/18 at 1:15 AM, uriukti said:

Yes, my display work very good.  But it has very big size in system. It is 640x480 in system. But my display is 320x240. I must change this size to 320x240 in system. For my display. And i want change size of text from 6x12 to 6x8 or 6x6 if this posible. 

 

please show us your config file.

 

My wiring

 

TFT     OPi(Pin#)
--------------------
MISO    N/C
LED    3.3V
SCK    SCLK(23)
MOSI    MOSI(19)
D/C    GPIO12(03)
RES    GPIO11(05)
CS    CS0(24)
GND    GND
VCC    3.3V

My config

orangepi@orangepipc:~$ cat /etc/modules-load.d/fbtft.conf
flexfb
fbtft_device

orangepi@orangepipc:~$ cat /etc/modprobe.d/fbtft.conf
options flexfb width=320 height=240 buswidth=8 init=\
-1,0x28,-2,20,-1,0xCF,0x00,0x83,0x30,-1,0xED,0x64,0x03,0x12,0x81,-1,0xE8,0x85,0x01,0x79,\
-1,0xCB,0x39,0x2c,0x00,0x34,0x02,-1,0xF7,0x20,-1,0xEA,0x00,0x00,-1,0xC0,0x26,-1,0xC1,0x11,\
-1,0xC5,0x35,0x3E,-1,0xC7,0xBE,-1,0xB1,0x00,0x1B,-1,0xB6,0x0a,0x82,0x27,0x00,-1,0xB7,0x07,\
-1,0x3A,0x55,-1,0x36,0x38,-1,0x11,-2,120,-1,0x29,-2,20,-3
options fbtft_device name=flexfb gpios=dc:12,reset:11 speed=1600000

 

flexfb-opi-1.JPG

Link to comment
Share on other sites

Sorry, I disappeared.

 

My wiring.

 

TFT       OPIZERO

-------------------

SCLK (SCK) - 23
MOSI (SDA) - 19
MISO - 21
CS - 24
DC (AO) - 13
RST - 11
VCC - 4
GND - 25
LED - 15

 

My config.

in

/etc/modules-load.d/fbtft.conf

fbtft_device

 

in

/etc/modprobe.d/fbtft.conf 

options fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:0,led:3 speed=48000000 fps=25 rotate=90 busnum=1 bgr=1 txbuflen=65536

 

I was able to fix the color and install my small font. But I still could not explain to the system that my screen is less than 640x480. Opened mc. 9 menu items out of 10 are open at the bottom.

 

 

tmp-cam--227879792.jpg

Link to comment
Share on other sites

17 hours ago, uriukti said:

I was able to fix the color and install my small font. But I still could not explain to the system that my screen is less than 640x480. Opened mc. 9 menu items out of 10 are open at the bottom

 

MC adjusts the menu indication automatically.

This is MC side issue.

 

flexfb-opi-4.JPG

flexfb-opi-5.JPG

Link to comment
Share on other sites

On 2017/4/29 at 1:31 PM, uriukti said:

This means that if I configure the output to the 320x240 screen inside the system, mc and other similar programs will not fit their borders into 320x240 frames? Will they be cut back?

 

I think so.

 

Link to comment
Share on other sites

Hi everyone. I have a problem that maybe you can help me with. I have a 3.5 LCD --- https://www.amazon.com/gp/product/B01IGBDT02/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

an Orange Pi Zero running ARMBIAN 5.59 testing Ubuntu 16.04.5 LTS 3.4.113-sun8i

Ive tried so many different options to get my lcd working. The last steps i took were the following

1.Make SD card with ARMBIAN 5.59 testing Ubuntu 16.04.5 LTS 3.4.113-sun8i

2. set up new password and reboot.

3.Edit files

 

/boot/armbianEnv.txt  

overlays=spi-spidev spi-add-cs1 param_spidev_spi_bus=1 param_spidev_spi_cs=1

 

/etc/modules-load.d/fbtft.conf 

 

fbtft fbtft_device

 

/etc/modprobe.d/fbtft.conf

 

options fbtft_device rotate=90 name=piscreen speed=16000000 busnum=1 gpios=reset:2,dc:18 txbuflen=32768 fps=25

 

4.Reboot

 

5. apt-get upgrade.

 

the gpios are wired the according to the pinout from the lcd I got from the link. Still I just have a blank screen. Ive spent 3 days trying different linux versions and different methods. Can any one help me figure this out. I would truly appreciate. Thank you

 

Link to comment
Share on other sites

Just wanted to give you an update. Thank you Igor. That solved the issue for the LCD to display. I did everything i said in my first message but I changed the Armbian to this version Armbian Bionic mainline based kernel 4.19.y. It worked like a charm. Now I just need to see if my touchscreen is working. Thanks again!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines