Home of the Squeezebox™ & Transporter® network music players.
Page 44 of 64 FirstFirst ... 34424344454654 ... LastLast
Results 431 to 440 of 637
  1. #431

    SSD1322 OLED with esp32-a1s Audio Kit V2.2

    Trying to get a SSD1322 OLED working with esp32-a1s Audio Kit V2.2 in SPI mode.
    I thought my OLED might have been a dud because I have tried many permutations of GPIO pins and not getting anywhere. Tested it on a Pi using Luma OLED library [https://github.com/rm-hull/luma.examples] and struggled there too, until I passed the --spi-device 1 parameter [default is 0] and suddenly it's working.
    So I know my OLED module works but I don't know what the equivalent of --spi-device 1 is with cfg-hw-display.
    This is my first attempt at anything with SPI. The Luma docs aren't especially enlightening:
    https://luma-core.readthedocs.io/en/...ace.serial.spi
    "device (int) ľ SPI device, usually 0 (default) or 1."

    Any ideas?

  2. #432
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,739
    Quote Originally Posted by troffasky View Post
    Trying to get a SSD1322 OLED working with esp32-a1s Audio Kit V2.2 in SPI mode.
    I thought my OLED might have been a dud because I have tried many permutations of GPIO pins and not getting anywhere. Tested it on a Pi using Luma OLED library [https://github.com/rm-hull/luma.examples] and struggled there too, until I passed the --spi-device 1 parameter [default is 0] and suddenly it's working.
    So I know my OLED module works but I don't know what the equivalent of --spi-device 1 is with cfg-hw-display.
    This is my first attempt at anything with SPI. The Luma docs aren't especially enlightening:
    https://luma-core.readthedocs.io/en/...ace.serial.spi
    "device (int) ľ SPI device, usually 0 (default) or 1."

    Any ideas?
    SSD1322 certainly works but A1S is funny with certain GPIO. What is your wiring?
    LMS 8.1.x on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

  3. #433
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,664
    I expect that the experts will need to see your configuration.

    The current squeezelite-esp32 docs say:
    Code:
    SPI
    The NVS parameter "spi_config" set the spi's gpio used for generic purpose (e.g. display). Leave it blank to disable SPI usage. The DC parameter is needed for displays. Syntax is
    
    data=<gpio>,clk=<gpio>[,dc=<gpio>][,host=1|2]
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  4. #434
    I have only tried three permutations of GPIOs since writing it down but this is what I've tried so far:
    Code:
    cfg-hw-spi -d 19 -k 18 -c 23 -h 1
    cfg-hw-display -t SPI -d SSD1322 -w 256 -h 64 --cs=5 --reset=22
    
    cfg-hw-spi -d 19 -k 15 -c 13 -h 1
    cfg-hw-display -t SPI -d SSD1322 -w 256 -h 64 --cs=5 --reset=22
    
    cfg-hw-spi -d 19 -k 18 -c 21 -h 1 [and 2]
    cfg-hw-display -t SPI -d SSD1322 -w 256 -h 64 --cs=5 --reset=22
    13 and 15 are shared with other functions, selectable by DIP switch. Documentation specific to this board seems to have disappeared from the internet. It is very reasonably priced though.

  5. #435
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,739
    Quote Originally Posted by troffasky View Post
    I have only tried three permutations of GPIOs since writing it down but this is what I've tried so far:
    Code:
    cfg-hw-spi -d 19 -k 18 -c 23 -h 1
    cfg-hw-display -t SPI -d SSD1322 -w 256 -h 64 --cs=5 --reset=22
    
    cfg-hw-spi -d 19 -k 15 -c 13 -h 1
    cfg-hw-display -t SPI -d SSD1322 -w 256 -h 64 --cs=5 --reset=22
    
    cfg-hw-spi -d 19 -k 18 -c 21 -h 1 [and 2]
    cfg-hw-display -t SPI -d SSD1322 -w 256 -h 64 --cs=5 --reset=22
    13 and 15 are shared with other functions, selectable by DIP switch. Documentation specific to this board seems to have disappeared from the internet. It is very reasonably priced though.
    But can you send me the config stances you use with squeezelite-esp32?
    LMS 8.1.x on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

  6. #436
    Quote Originally Posted by philippe_44 View Post
    But can you send me the config stances you use with squeezelite-esp32?
    Attached.
    Attached Files Attached Files

  7. #437
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,739
    Quote Originally Posted by troffasky View Post
    Attached.
    I have to check what my simplified parser does, but "display_config": "SPI:width=256,height=64,cs=5,reset=22,speed=80000 00,driver=SSD1322", should be "display_config": "SPI,width=256,height=64,cs=5,reset=22,speed=8000000,dr iver=SSD1322". Can you capture the serial log when it boots? It will tell me if the configuration is properly taken into account. You just need either a terminal or "idf.py monitor" on the pseudo-COM, or use telnet
    LMS 8.1.x on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

  8. #438
    Code:
    I (2870) display: Trying to configure display with SPI:width=256,height=64,cs=5,reset=22,speed=8000000,driver=SSD1322
    I (2980) SSD1322: SSD1322 with offset 28, page 8, iRAM 0x3ffc7104
    I (2990) display: Display is SPI host 2 with cs:5
    I (2990) gds: Adding line 1 at -3 (height:14)
    I (2990) gds: Adding line 2 at 8 (height:24)
    Running version: ESP32-A1S.552.master-cmake
    Last edited by troffasky; 2021-01-22 at 16:32. Reason: Version number

  9. #439
    Junior Member
    Join Date
    Dec 2020
    Posts
    7
    this is, what i'm using spi with ESP32 Audio Kit V2.2 and an 0.96" OLED monochrom (only first 10 lines are yellow, the rest is blue)

    fw: ESP32-A1S.552.master-cmake

    spi_config: data=13,clk=15,dc=19,host=1
    display_config: SPI:width=128,height=64,cs=12,reset=22,speed=80000 00,driver=SSD1306,HFlip,VFlip
    DIP: off,off,off,on,on

    Name:  IMG_0020.JPG
Views: 135
Size:  50.0 KB
    Last edited by Harry1999; 2021-01-23 at 04:11.

  10. #440
    Senior Member sle118's Avatar
    Join Date
    Dec 2009
    Location
    Quebec City, Canada
    Posts
    401
    Quote Originally Posted by philippe_44 View Post
    I have to check what my simplified parser does, but "display_config": "SPI:width=256,height=64,cs=5,reset=22,speed=80000 00,driver=SSD1322", should be "display_config": "SPI,width=256,height=64,cs=5,reset=22,speed=8000000,dr iver=SSD1322". Can you capture the serial log when it boots? It will tell me if the configuration is properly taken into account. You just need either a terminal or "idf.py monitor" on the pseudo-COM, or use telnet
    This is odd. It looks like an old bug that was fixed 4 months ago
    https://github.com/sle118/squeezelit...cessors.c#L222
    LMS 7.9 - 1xRadio, 1xBoom, 5xDuet,3xTouch, 1 SB2. Sony PlayStation, Emby, Chromecast v1 and v2 and...
    6xSqueezeAmp!
    Contributing to Folding@Home : https://stats.foldingathome.org/donor/squeezelite-esp32

Posting Permissions

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