Loading...

You have no items in your shopping cart.

 
 
 
×

Registration

Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

Raspberry PI With TFT LCD Demo

We released a "Raspberry PI LCD Adapter Kit" before, and you can have our ITDB02-2.4E and ITDB02-2.8 connected directly to the Raspberry Pi for use. Here we provide some demo codes for these two screens – the demo codes are modified based on UTFT and UTouch libraries provided by Henning. As it is only for demonstration, and our engineers are not familiar with the Raspberry Pi, the codes may be a little bit rough thus for reference only.

First, connect ITDB02-2.4E screen module to Raspberry Pi through our Raspberry PI LCD Adapter Kit, then start the Raspberry Pi and enter the system.

Next, we will need to create an IO operation library wiringPi for the Raspberry Pi. For specific installation method, please refer to this post.

After installation, copy the demo code folder we provided to the user directory (then extract the compressed packages) – To facilitate demonstration, we put it directly on the desktop. Run the command line (if it is placed in other locations, modify to the corresponding directory path):
cd / home / pi / Desktop / RPILCD

Then run the command line so that gcc can compile file:
gcc lcd.c lcddemo.c SFont.c-lm-lwiringPi-o lcddemo

After compiling, implement ‘run’ command to see the display results, and Raspberry Pi will drive ITDB02-2.4E to refresh and display of a variety of patterns constantly
sudo. / lcddemo

As we nearly used all the functions provided by UTFT, you can also regard this demo file as half of a library, and you can modify LCDDemo file directly or re-create a new file. That is, you can write a realization program, then save it and use command lines to browse, compile and run to see the implementation effects.

  RPI LCD DEMO (unknown, 4,329 hits)

Related article: