Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrorangepi + tft 2.4" screen spi ili9341
#11
Great implementation of this screen (thanks to BB-CP - A replacement for FBTFT + FBCP) :
https://www.facebook.com/groups/14832708...790833955/

For OrangePi Zero:

Code:
1. Download image from http://149.202.0.61/.../RetrOrangePi-4.1.Orangepizero.img.gz (it’s retrorangepi.org ip, or go to retrorangepi.org and change download link, cuz on site placed wrong file name for OPi Zero)
2. Write it to your SD Card
3. Connect UART to your OPi and boot.
4. After boot run:
$ sudo nmtui
Choose “Activate a connection” and setup your wi-fi. After then run:
$ sudo dhclient wlan0
Test connection and update system ?
$ sudo apt update && apt upgrade
5. Cloning git’s:
$ git clone https://github.com/bitbank2/BB-CP.git
$ git clone https://github.com/bitbank2/SPI-LCD.git
6. Edit and compiling it:
$ cd SPI_LCD
$ nano spi_lcd.c
// uncomment #define USE_ORANGEPIZERO and #define USE_GENERIC, and comment another variants
7. Save file and compile:
$ make
8. Compile BB_CP:
$ cd ../BB-CP && make
9. If compilation done without errors try to run it:
! Don’t repeat my mistakes: gpio pin 15 is gpio3, --lcd_led 3 is wrong ?
! And don’t forget sudo! It’s second stupid mistake ?
$ sudo ./bbcp --lcd_dc 13 --lcd_rst 11 --lcd_led 15
If you get white screen, press Enter and try:
$ sudo ./bbcp --lcd_dc 13 --lcd_rst 11 --lcd_led 15 --spi_bus 1
10. Done!
If you want to start it on boot:
1. Edit main.c:
$ nano main.c
// find getchar() and replace it with a while(1) { }
// if you want, you can set default pins. Find iDC, iReset, iLED and set your pin for dc, rst and led ?
2. Add command before exit 0 in /etc/rc.local:
If you set your default pin:
/home/pi/BB-CP/bbcp --spi_bus 1 &
Else:
/home/pi/BB-CP/bbcp --lcd_dc 13 --lcd_rst 11 --lcd_led 15 --spi_bus 1 &
Reply
#12
ive build many GBZ using Rasppberry Pi (over a dozon)....

some have come out ok

[Image: fSmxtg9.jpg]


but i'm trying to build one using a Orange Pi Lite using a 3.2" ili9341 screen (18pin)....

and my noob skills are just overwhelming me.....
i've tried many different ways (including the method listed here)....

but cannot get it to work

i'm either onnecting up the screen incorrectly or installing/enabling it wrong
or both

i get an error message at this point every time

Code:
8. Compile BB_CP:
$ cd ../BB-CP && make




i would appreciate some help on this, as i'm completely stumped
(a wiring diagram would also help)



thanks.....




.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Bug [DRIVER BUG] [RetrOrangepi v4.1] Wifi Very Inconsistent evert7877 1 815 01-29-2018, 10:37 AM
Last Post: alexkidd
  BananaPi m2 Berry + RetrOrangePi + Nespi case phobosjv 3 1,438 01-11-2018, 08:49 AM
Last Post: Liontek1985
  RetrOrangePi 4.1 + PS3 shanvan lego666 1 943 12-21-2017, 11:01 AM
Last Post: alexkidd

Forum Jump:


Users browsing this thread: 1 Guest(s)