View: 21596|Reply: 23

Orange Pi PC 3.95 inch display test

[Copy link]

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
Published in 2016-6-8 17:58:58 | Show all floors |Read mode
Edited by mariuszb at 2016-6-20 19:33

I plugged in and tested the 3.95 inch display with Orange Pi PC and Armbian Jessy.
It can be used for own use, this is only a test program  


(2 files added :  displaytft.c and fonts.h)
Just compile and run displayTFT.c file  (example directory)  ( LCD also display CPU temperature)





This thread contains more resources

You need to Log in to download or view,No account?    Register

x

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2016-6-9 03:35:11 | Show all floors
What is the difference between flexiti/WiringOP and zhaolei/WiringOP ?


2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
 Author| Published in 2016-6-9 04:09:11 | Show all floors
Edited by mariuszb at 2016-6-15 16:08

DisplayTFT.c file in example ( and simplified access to ports (less transparent but 10 times faster - see #define FAST_DATA)

11

threads

286

posts

1936

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1936
Published in 2016-6-10 19:38:44 | Show all floors
you can use too notro driver for using lcd with framebufer
https://www.youtube.com/watch?v=H7NKQ_STfg0

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
 Author| Published in 2016-6-11 02:52:48 | Show all floors
melanrz
Why download the example you show is through these strange sites ? You can not put on Git?
What it is notro driver ?

11

threads

286

posts

1936

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1936
Published in 2016-6-11 06:33:33 | Show all floors
mariuszb replied at 2016-6-11 02:52
melanrz
Why download the example you show is through these strange sites ?  You can not put on Git ...

https://github.com/notro/fbtft

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
 Author| Published in 2016-6-20 17:50:24 | Show all floors
Edited by mariuszb at 2016-6-21 19:54

Now I have connected this display using fbtft


This is done as folows:

  1. sudo modprobe fbtft_device name=flexpfb rotate=180 gpios=dc:110,reset:21,wr:1,cs:6,db00:3,db01:68,db02:71,db03:64,db04:2,db05:65,db06:66,db07:67
  2. sudo modprobe flexfb width=320 height=480 buswidth=8 init=-1,0x11,-2,200,-1,0x36,-1,0x3A,0x05,-1,0x36,0x48,-1,0x13,-1,0x29,-1,0x2C,-3
Copy code


and test picture:

  1. sudo fbi -d /dev/fb8 -T 1 -noverbose -a example.jpg
Copy code

Video:

  1. sudo apt-get install -y mplayer
  2. sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb8 mplayer -vo sdl -framedrop example.mpg
Copy code


Why it is extremaly slow ?  ( 1 frame pre second)
Some hint?



This thread contains more resources

You need to Log in to download or view,No account?    Register

x

11

threads

286

posts

1936

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1936
Published in 2016-6-23 04:47:53 | Show all floors
mariuszb replied at 2016-6-20 17:50
Now I have connected this display using fbtft

add string on modprobe fbtft_device  speed=16000000 ,try diferent speed on spi bus whenb is to high screen make artefacts

13

threads

77

posts

444

credits

Intermediate member

Rank: 3Rank: 3

credits
444
Published in 2016-6-23 12:44:17 | Show all floors
How do i drive this display with Python.
I am doing a project where i display some data on lcd with python how to drive this display and use custom string Characters on it

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
 Author| Published in 2016-6-23 15:59:54 | Show all floors
melanrz replied at 2016-6-23 04:47
add string on modprobe fbtft_device  speed=16000000 ,try diferent speed on spi bus whenb is to hig ...

This is not SPI device (8 bit paralel) , so speed def is not used
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list