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?
Results 431 to 440 of 619
-
2021-01-22, 09:39 #431
- Join Date
- May 2020
- Posts
- 50
SSD1322 OLED with esp32-a1s Audio Kit V2.2
-
2021-01-22, 09:45 #432
- Join Date
- May 2008
- Location
- Canada
- Posts
- 6,723
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
-
2021-01-22, 09:45 #433
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 3,633
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
-
2021-01-22, 10:18 #434
- Join Date
- May 2020
- Posts
- 50
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
-
2021-01-22, 10:39 #435
- Join Date
- May 2008
- Location
- Canada
- Posts
- 6,723
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
-
2021-01-22, 15:28 #436
-
2021-01-22, 16:16 #437
- Join Date
- May 2008
- Location
- Canada
- Posts
- 6,723
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
-
2021-01-22, 16:24 #438
- Join Date
- May 2020
- Posts
- 50
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)
Last edited by troffasky; 2021-01-22 at 16:32. Reason: Version number
-
2021-01-23, 02:33 #439
- 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
Last edited by Harry1999; 2021-01-23 at 04:11.
-
2021-01-23, 06:22 #440
This is odd. It looks like an old bug that was fixed 4 months ago
https://github.com/sle118/squeezelit...cessors.c#L222LMS 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