Home of the Squeezebox™ & Transporter® network music players.
Page 33 of 33 FirstFirst ... 23313233
Results 321 to 328 of 328
  1. #321
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,745
    Well I stumbled across the st7789 drm driver. I built it, have it loading. But nothing was displaying. The fbtft modprobe parameters that work here, and pimoroni's python code show the driver using BCM9 for the dc pin. Well, that's a bit of a conflict, as BCM9 is one of the SPI pins. The kernel will not allow the same pin to be allocated to 2 different functions. Whereas user-space probably just doesn't know any better.

    < Insert many hours of waste>

    One last ditch effort.....lie to device-tree. The normal convention is to tell device tree what you are using gpios for. So just like the user space drivers, I left out the gpio allocation, and just used the pin. And it works.

    All rotations work. I'll likely change the name of the overlay....I did this to make sure I did not have other driver conflicts.)
    Code:
    dtoverlay=piratelcd
    dtoverlay=piratelcd,rotation=90
    dtoverlay=piratelcd,rotation=180,row_offset=80
    dtoverlay=piratelcd,rotation=270,row_offset=80
    Sources: https://github.com/notro/tinydrm (There is a st7789 driver here, but it's already updated to kernel 5.2+)

    But in the issues, there is a discussion with Ladyada from adafruit, edits contained in there. https://github.com/notro/tinydrm/issues/17
    Last edited by paul-; 2020-02-15 at 14:12.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #322
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,084
    Black arts
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  3. #323
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,745
    Sometimes it feels that way.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #324
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,561
    Quote Originally Posted by paul- View Post
    All rotations work. I'll likely change the name of the overlay....I did this to make sure I did not have other driver conflicts.)
    Code:
    dtoverlay=piratelcd
    dtoverlay=piratelcd,rotation=90
    dtoverlay=piratelcd,rotation=180,row_offset=80
    dtoverlay=piratelcd,rotation=270,row_offset=80
    Great stuff. So this will remove the need for the two modprobe commands in bootlocal.sh, to be replaced by a single dtoverlay in config.txt. Much easier.

    Is it possible that the same overlay will work for other versions of this display? My standalone display needed:
    Code:
    modprobe fbtft_device name=flexfb speed=32000000 gpios=dc:9,reset:27
    to get it working, but the flexfb init string was the same. The above command has an implied 'cs=0' (the default), so is it possible that CS and Reset can be exposed as parameters of the overlay, just as 'rotation' and 'row_offset' are?

  5. #325
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,745
    Reset is exposed, cs is the chip select line. Can’t you just hook up to bcm7/CE1? But I’m sure that can be exposed too.
    Last edited by paul-; 2020-02-15 at 18:53.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #326
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,561
    Quote Originally Posted by paul- View Post
    Can’t you just hook up to bcm7/CE1?
    D'Oh, yes, of course I can. What threw me initially was that I'd wired it up as per the pinout diagram here, yet still I needed to change the CS pin in the modprobe command. I believe that must be because the pinout diagram is showing the wrong CS pin. The fact that we need 'cs=1' to get the Pirate Audio boards working tells us, I believe, that it's using BCM7, not BCM8.

    For the record, the orientation/offset init strings work on this stand alone display too.

  7. #327
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,084
    I see that Pimoroni are offering 15% off for much of their stuff for a “kraken” sale period of a few days.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  8. #328
    Junior Member
    Join Date
    Feb 2020
    Posts
    5
    Quote Originally Posted by Paul Webster View Post
    I see that Pimoroni are offering 15% off for much of their stuff for a “kraken” sale period of a few days.
    So they do. £16.58 for a line-out Pirate Audio! Thanks.

Posting Permissions

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