Assistance with Usermod_four_line_display Supported Displays?

HI. I have a question about this mod’s compatible hardware. The UI offers a few different display types, but only SPI pins are offered up in the UI. So, no I2C displays seem to be supported, but according to usermod_v2_four_line_display_ALT.h:

//
// Inspired by the usermod_v2_four_line_display
//
// v2 usermod for using 128x32 or 128x64 i2c
// OLED displays to provide a four line display
// for WLED.

So how / where are the pins for SCL and SDA defined?

@Daro66 Hi the pins are the Hardware I2C of the chip inuse
you cand use a software isc as the timers are used to the pixels

1 Like

I2C is shared among usermods.

@Magig_Wled: If I understand correctly, if I were using an I2C display, just set the type and the pins to undefined?

@blazoncek: Isn’t a bus address required? Is using I2C sub-optimal compared to SPI?

Please read usermod’s documentation. Included with source.
For I2C you only need to specify global SDA and SCL pins.

AFAIK SPI is faster protocol than I2C. But requires more pins as is reflected in setup.

I did, but found no information pertaining to my question. As a matter of fact, the readme say to look at the original user mod, but that mod was not in the download I got:


The number of pins was my reasoning, but I do have them available. Is there a noticeable difference? This project is using 2304 pixels. (9 x 256)

Hmmm. The mod is in the Github repository…

So, they are connected as below, and the pins in the UI stay “unused” (-1)?


I’ve not ever used more than one I2C device at once. If there are more than one, are they connected in parallel, i.e. multiple SCAs connected to pin 21 and multiple SCLs connected to pin22, and the bus address is used to communicate with that node?

I see my mistake. The screenshot is from “Main”, but I downloaded “0_15”. The mod is not in that repository.

I got the SPI version to try because it was a good deal cheaper. I may try the I2C version as well just to save three pins.

I have to say: Friggen awesome! This is EXACTLY what I was hoping to do.

Does this mean that softhack007 is the author? Sorry for the questions, but I’ve not really used Github…

Now comes the fun part…

Edit 1: I was too excited :rofl::rofl::rofl:
The SPI version is more expensive. I got it to test because I wasn’t sure about the I2C connection, but I will order one to test, and if there are no noticeable differences, use them in the future.

The original author was Kevin Dorff (kdorff), but ALT usermod was implemented by Benjamin (Proto-molecule) and then modified by me.