Home of the Squeezebox™ & Transporter® network music players.
Page 48 of 48 FirstFirst ... 38464748
Results 471 to 480 of 480
  1. #471
    Junior Member
    Join Date
    Jul 2021
    Posts
    6
    Sure, but as I mentioned, in the end I simply followed the docs in https://www.waveshare.com/wiki/1.3inch_LCD_HAT
    Once the C demo compiled and proved to be working, I proceeded by:
    1. Compiling Waveshare_fbcp.7z (basically a copy of fbcp-ili9341)
    2. setting fbcp-ili9341 to loat on startup as per docs
    3. adding to config.txt the following (width and height on Waveshare's docs are set to 300 and there's a redundant hdmi_mode line, probably copy/paste junk)

    Code:
    hdmi_force_hotplug=1
    hdmi_cvt=240 240 60 1 0 0 0
    hdmi_group=2
    hdmi_mode=87
    display_rotate=0
    And the display worked:
    Name:  rpi_tft.jpg
Views: 136
Size:  52.0 KB

    Then, to get the Keys working it was a just a matter of customising the sbpd-script.sh with the pins from Waveshare's docs and it worked with Jivelite:

  2. #472
    Junior Member
    Join Date
    Jul 2021
    Posts
    6
    Now, since that hat has keys that conflict with Hifiberry DAC2 HD, and I don't really want to have the tiny joystick and the 3 buttons on my streamer, I'm trying another TFT.
    This one is just the display, not a full hat and no keys, also no CS pin, only Reset:
    Name:  ST7789_1.3_inch_tft.jpg
Views: 128
Size:  52.9 KB

    The pins are assigned to a block that does not conflict with the Hifiberry DAC2 HD:
    Name:  ST7789_pinout.png
Views: 133
Size:  105.7 KB

    I recompiled fbcp-ili9341 with the new pinout, based on the docs from https://github.com/juj/fbcp-ili9341:
    Code:
    cmake -DSPI_BUS_CLOCK_DIVISOR=6 -DST7789=ON -DGPIO_TFT_DATA_CONTROL=25 -
    DGPIO_TFT_RESET_PIN=22 -DGPIO_TFT_BACKLIGHT=23 ..
    But it's not working yet, Jivelite throws the "socket connect failed" error.

    I read on a post that someone else managed to get these displays working, setting the pins via modprobe. For this pinout it would be:
    Code:
    modprobe fbtft_device name=flexfb speed=32000000 gpios=dc:25,reset:22
    But it throws an error:
    Code:
    modprobe: FATAL: Module fbtft_device not found in directory /lib/modules/5.10.42-pcpCore-v7
    I'm running pcp v8.0 and it loos like fbtft_device has been discontinued, not sure what's the new method to do the same setup.
    If anyone has a hint, it would be much appreciated
    Last edited by freakk; 2021-07-24 at 07:59.

  3. #473
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,342
    That driver is gone. As I suspect they will all go soon(the ones in the staging folder). Nobody is maintaining it. A word to the wise, avoid waveshare devices that donĺt have maintained drivers. Did you try the ST7789V drm driver that works with the pirate screen.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #474
    Junior Member
    Join Date
    Jul 2021
    Posts
    6
    If you're referring to this one, I looked into that, but I'm not sure how to configure it to use the Reset pin instead of CS.

  5. #475
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,342
    Quote Originally Posted by freakk View Post
    If you're referring to this one, I looked into that, but I'm not sure how to configure it to use the Reset pin instead of CS.
    All overlays have information in the README file which is in the overlay folder. CS is not a pin in the overlay, that tells the driver which SPI channel to use. Your pin diagram shows CE0 is being connected, so make sure you tell it to use cs CE0.

    Code:
    Name:   st7789v-spi
    Info:   Overlay for ST7789V LCD via SPI using tinydrm driver.
    Load:   dtoverlay=st7789v-spi,<param>=<val>
    Params: speed                   SPI bus speed (default 3200000)
            rotation                Display rotation (0, 90, 180 or 270; default 0)
            width                   Display width (default 240)
            height                  Display height (default 240)
            col_offset              Display column offset (default 0)
            row_offset              Display row offset (default 0)
            dc_pin                  GPIO pin for D/C (default 9)
            reset_pin               GPIO pin for RESET (Default Unused)
            cs                      SPI chip select 0=CE0,1=CE1 (default 1)
            backlight               GPIO pin for the backlight (default 13)
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #476
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,347
    You can read the README by:

    [Main Page] in [Beta] mode > [Extras] > "Overlays README"

  7. #477
    Junior Member
    Join Date
    Jul 2021
    Posts
    6
    Thanks for the info, I'll make sure to dig into those READMEs in the future.

    Your pin diagram shows CE0 is being connected
    The rectangle might be deceiving, the display I was using has the CS ping hardwired to gnd and it's not exposed, so not connected to RPi's gpio.
    I tried setting the reset pin with the overlay, but I still get jivelite logging "socket connect failed".
    I will try another display, one with all pins exposed, including CS.

  8. #478
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,342
    First get the screen working, then worry about jivelite. A functioning screen should show the linux console, the screen will not start until after boot and the OS starts to load.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  9. #479
    Junior Member
    Join Date
    Feb 2020
    Posts
    11
    Quote Originally Posted by freakk View Post
    Sure, but as I mentioned...
    This is great! Thank you so much for taking the time to share this so completely.

    Cheers!

  10. #480
    Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    30

    Help. PiCore player splash screen flashes and then disappears

    Hi,
    Trying to set up the Pimoroni Line Out Mini Hat with a Pi 4B running PcP 8.0
    I've followed the steps in post #348.

    The Pirate audio card plays fine thru squeezekite, but with jivelite, the splash screen "Picoreplayer - red white and black" flashes briefly before going back to the console output - ending in "a large offset between 1970 and now is normal".
    I seem to remeber this behavior happening with other displays, but I can't remember how to fix it.
    I've tried changing /dev/fb1 to /dev/fb0 but is exactly the same...
    Any help appreciated.
    Matt
    Melbourne, Australia
    piCore Player 7 on Raspberry pi 4b

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •