Write on LCD screen

Just about everything about Red Pitaya
Post Reply
gregoire_thomas
Posts: 15
Joined: Tue May 17, 2016 12:18 pm

Write on LCD screen

Post by gregoire_thomas » Fri May 20, 2016 4:40 pm

Hi,

I'm currently trying to use an LCD (ili9341 from Adafruit) with the red pitaya and to print some characters on it.
I didn' t find any examples on Google about how to do this.

I don't know how to configure the blocks because i have neither RS pin nor Enable (E) pin on my LCD.
So i don't know which value i have to put on RS and E pin in Visual Programming.
The other problem is that my LCD screen is 2.8" so i have much more than 16 columns and 2 rows.
You'll find attached a screen of what I did in Visual Programming.

I made the following connections between LCD and Red Pitaya :
D7 ... D4 <===> DIO7_N ... DIO4_N
SDA <===> I2C_SDA
SCL <===> I2C_SCL
WR <===> GND (i set WR to GND to enable write mode)
3-5V <===> 3.3V
GND <===> GND

Can someone help me please ?
Thanks.
You do not have the required permissions to view the files attached to this post.

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Write on LCD screen

Post by Nils Roos » Fri May 20, 2016 5:12 pm

Hi,

the ILI9341 can probably not be addressed from the "LCD character display on I2C" block that you tried to use. The preferred method of communicating with the ILI9341 seems to be the SPI bus, and Adafruit provides a python-based driver library to access its display functions.

Now, I am not familiar with the Visual Programming stuff at all, but it may be possible to create a block that encapsulates that driver. Can't tell you how to go about that, though.

xyefa
Posts: 54
Joined: Tue Feb 02, 2016 8:42 pm

Re: Write on LCD screen

Post by xyefa » Fri May 20, 2016 5:45 pm

I am also working with an AdaFruit screen. Yes these are SPI based (the one I have is), so you will need the SPI pin numbers and then modify the the Device Tree and recompile the kernel if you want to get it in automatically.

Request: A good device tree example would be good and helpful for us.

<<

gregoire_thomas
Posts: 15
Joined: Tue May 17, 2016 12:18 pm

Re: Write on LCD screen

Post by gregoire_thomas » Mon May 23, 2016 9:50 am

Thanks for your help !

In the Red Pitaya shell when I have
root@redpitaya:~#
What is the command line to open the library's directory ?

The following line :

Code: Select all

cd /librarysdirectory
doesn't work because my library's folder is on my windows desktop.
So do you know how to import the library into visual programming so I can use "cd" to open the library's folder ?

Thanks

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 121 guests