Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12Next
Return to list New
View: 14161|Reply: 16

Orangepi zero + TFT LCD + GUI Desktop

[Copy link]

1

Threads

9

Posts

81

Credits

Registered member

Rank: 2

Credits
81
Post time 2017-7-24 13:34:32 | Show all posts |Read mode
Hi,

I want to enable GUI desktop on Waveshare 3.2 TFT LCD with orangepi zero using Lubuntu or debian desktop images available at the website.
How to configure the LCD for GUI view.

Am able to drive LCD with armbian ubuntu server image in CLI mode as mentioned in the following bog:
https://kaspars.net/blog/linux/spi-display-orange-pi-zero

8

Threads

616

Posts

4136

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4136
Post time 2017-7-25 04:47:42 | Show all posts
Try with Ubuntu desktop for Orange Pi One and use OrangePi Zero fex file (/boot/script.bin). It should work.

1

Threads

9

Posts

81

Credits

Registered member

Rank: 2

Credits
81
 Author| Post time 2017-7-25 14:53:18 | Show all posts
Hi,

As suggested I have followed the following steps:

1.  Flashed Armbian_5.30_Orangepione_Ubuntu_xenial_default_3.4.113_desktop.img in sd card and removed the /boot/script.bin.
2. I have created another script.bin with symbolic link to /boot/bin/orangepizero.bin
3. Reboot
4. sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90
5. con2fbmap 1 8
Post this my LCD turns out to be black screen but no GUI.
Kindly suggest further

10

Threads

220

Posts

1990

Credits

Gold member

Rank: 6Rank: 6

Credits
1990
Post time 2017-7-25 20:15:45 | Show all posts
Edited by nopnop2002 at 2017-7-25 22:12
karthik replied at 2017-7-25 14:53
Hi,

As suggested I have followed the following steps:

I use Armbian_5.30_Orangepizero_Debian_jessie_default_3.4.113

Try this
dc->GPIO3(Pin#15)
reset->GPIO0(Pin#13)
SCK->CLK(Pin#23)
MOSI->MOSI(Pin#19)
CS->CS(Pin#24)
GND->GND
VCC->3.3V


horizontal
  1. sudo modprobe fbtft_device name=flexfb gpios=dc:3,reset:0 speed=3200000 busnum=1

  2. sudo modprobe flexfb width=320 height=240 buswidth=8 init=\
  3. -1,0x01,-2,5,\
  4. -1,0x28,\
  5. -1,0x36,0x38,\
  6. -1,0x3A,0x55,\
  7. -1,0x11,-2,100,\
  8. -1,0x29,-2,20,\
  9. -3

  10. con2fbmap 1 8
Copy the Code
vertical
  1. sudo modprobe fbtft_device name=flexfb gpios=dc:3,reset:0 speed=3200000 busnum=1 rotate=90

  2. sudo modprobe flexfb width=320 height=240 buswidth=8 init=\
  3. -1,0x01,-2,5,\
  4. -1,0x28,\
  5. -1,0x36,0x58,\
  6. -1,0x3A,0x55,\
  7. -1,0x11,-2,100,\
  8. -1,0x29,-2,20,\
  9. -3

  10. con2fbmap 1 8
Copy the Code

EDIT:Even this works.
  1. sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90

  2. con2fbmap 1 8
Copy the Code



1

Threads

9

Posts

81

Credits

Registered member

Rank: 2

Credits
81
 Author| Post time 2017-7-25 22:26:05 | Show all posts
Thank you all, appreciate your support !!   I can see armbian desktop in my LCD.

I am trying to enable the touch on my waveshare 3.2 LCD with Armbian OS.  It seems like LCD supports ads7846_device.
How to configure and enable the touch drivers in Armbian OS?

10

Threads

220

Posts

1990

Credits

Gold member

Rank: 6Rank: 6

Credits
1990
Post time 2017-7-25 23:08:16 | Show all posts
karthik replied at 2017-7-25 22:26
Thank you all, appreciate your support !!   I can see armbian desktop in my LCD.

I am trying to ena ...

Check this.

https://forum.armbian.com/index. ... how-enable-ads7846/

But... I think it's hard work to enable ads7846.


1

Threads

9

Posts

81

Credits

Registered member

Rank: 2

Credits
81
 Author| Post time 2017-7-27 20:43:32 | Show all posts
Hi,

I am trying to enable same LCD with Orange Pi one using Armbian_5.30_Ubuntu_Xenial_3.4.113_desktop image.Following commands are not working:

    sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90

    con2fbmap 1 8

Above command gives error "modprobe: ERROR: could not insert 'fbtft_device': Invalid argument" but it works with OPI zero.
Kindly share the working command for OPI one

10

Threads

220

Posts

1990

Credits

Gold member

Rank: 6Rank: 6

Credits
1990
Post time 2017-7-27 21:21:48 | Show all posts
Edited by nopnop2002 at 2017-7-27 21:40
karthik replied at 2017-7-27 20:43
Hi,

I am trying to enable same LCD with Orange Pi one using Armbian_5.30_Ubuntu_Xenial_3.4.113_desk ...

Pin#24 of ZERO is SPI1_CS.
Pin#24 of ONE is SPI0_CS.

So in case of ONE(except for ZERO),use busnum=0 or omit busnum.

1

Threads

9

Posts

81

Credits

Registered member

Rank: 2

Credits
81
 Author| Post time 2017-7-28 17:22:01 | Show all posts
Thanks!
Waveshare 3.2 LCD is now working fine with OPI one but :
ls /dev/spi*  outputs "no such file or directory"

I am trying to enable touch for 3.2 tft LCD with ads7846 for OPI one using https://github.com/Tomasz-Mankowski/ADS7846-X11-daemon , but the command ./ADS7846-X11 fails with following output
"./ADS7846-X11: Error connecting to SPI dev: /dev/spidev0.0"

10

Threads

220

Posts

1990

Credits

Gold member

Rank: 6Rank: 6

Credits
1990
Post time 2017-7-28 21:47:47 | Show all posts
Edited by nopnop2002 at 2017-7-28 21:49
karthik replied at 2017-7-28 17:22
Thanks!
Waveshare 3.2 LCD is now working fine with OPI one but :
ls /dev/spi*  outputs "no such fil ...

/dev/spidev0.0 is used in TFT.

OPI is different from RPI, and there is only 1 of SPI.



12Next
Return to list New
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-10-24 09:33 GMT+8 , Processed in 0.037683 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list