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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)