OLED display GPIO

Hi.

I would like to connect this OLED display to VIM but i am not sure with the GPIO PINOUT.

can you help me please:

OLED Display PIN NUMBER-------------------------------------------------------VIM GPIO PIN NUMBER

1.GND: Power ground
2.VDD:2.8-5.5V power supply
3.SCK: CLK clock
4.SDA: MOSI data
5.RES: Reset
6.DC: data / command
7.CS: chip-select signal

https://www.ebay.com/itm/163618587886

Can’t see any SPI pin on VIM. Are you sure it has SPI?
What OLED is this? Is there I2C connection?

Not sure VIM has SPI, was planning to use IIC model

IIC/SPI 128X64 Serial OLED LCD Display Screen Module Blue/White for Arduino

IIC Version has different pinout:
Oled ==> Khadas
1.GND:power ground ==> 28
2.VCC:power positive ==> 27 (for 3V3 supply) / 1 (for 5V supply)
3.SCL:clock wire ==> 22 (IIC PortA) / 25 (IIC PortB)
4.SDA:data wire ==> 23 (IIC PortA) / 26 (IIC PortB)

Preferred would be 3V3 supply, on I2C use whatever port you get running by the driver

Thanks! and for VIM2?

VIM2 GPIO Pinout

Pinout map(V12):

| — | — | — | — |
|5V|1|21|GND|
|5V|2|22|I2C_SCK_A|
|HUB_DM1|3|23|I2C_SDA_A|
|HUB_DP1|4|24|GND|
|GND|5|25|I2C_SCK_B|
|GPIODV_21|6|26|I2C_SDA_B|
|GPIODV_22|7|27|3.3V|
|GPIODV_23|8|28|GND|
|GND|9|29|I2S_SCLK|
|ADC_CH0|10|30|I2S_MCLK|
|1.8V|11|31|I2S_SDO|
|ADC_CH2|12|32|I2S_LRCK|
|SPDIF|13|33|I2S_SDI|
|GND|14|34|GND|
|UART_RX_AO_B|15|35|PWM_D|
|UART_TX_AO_B|16|36|RTC_CLK|
|GND|17|37|GPIOH_5|
|Linux_RX|18|38|EXP_INT|
|Linux_TX|19|39|GPIODV_13|
|3.3V|20|40|GND|

It seems not even the VIM3 has SPI (neither VIM2 or VIM).
What are you trying to achive?
You have an OLED display with SPI interface, right?
Do you have any SBC?
Or planing to buy?
Or what?

VIM2 the same pinout as VIM, at least regarding the display connection scheme…

@Pelican
Q:It seems not even the VIM3 has SPI (neither VIM2 or VIM).
What are you trying to achive?
A:I was planning to purchase and use the Display Module which supports IIC I2C SPI Serial.

Q: You have an OLED display with SPI interface, right?
Although the display has SPI, did not plan to use the SPI, planned to use Its IIC or I2C protocol.

Q: Do you have any SBC? Or planing to buy? Or what?
A: I have already purchased VIM2 (also VIM1)

As long as there are enough free GPIOs (non-special function pins), you can use the OpenVFD driver.
I never had the chance to test it on a VIM board, so I can’t say whether it will work out of the box or not.
@elandes You can use one of the SPI config files here and see if there are no errors from OpenVFD in dmesg log (you don’t need a display to test it). If there are no errors, you can get the SPI display, and connect it as instructed in the vfd.conf file itself.
Edit: I think the VIM2 does have I2C on board, and the newest OpenVFD driver supports hardware I2C. I’d have to create a new config file, but it should work in I2C mode too.

'Khadas Staff:

The OLED support both SPI or I2C interface, but actually, VIM1 only support I2C, so ensure the OLED connect to the I2C pins, any IO will work for signals like Reset, CS.’

Does it help?
Where do I paste vfd conf?

OpenVFD driver supports software spi, so it will work if there are enough free gpio pins.
As to how to configure it, read this thread.

“A:I was planning to purchase and use the Display Module which supports IIC I2C SPI Serial.”
Could you give a link what Display Module you would like to buy?

option 1:

option 2:
https://www.ebay.com/itm/163618587886/

Both could work with hardware or software I2C so you can use them for the VIMs.

You should test what I suggested. If there are no errors, you can get the SPI display.

Ok , I will check the errors.
can someone explain to me if I need the PCB version and what does it mean?

Yes, you need the PCB version. There are a lot of components that are required to drive the OLED.
The PCB versions are ready to use, the OLED-only version will require you to mount it on our own PCB with the passive components needed to drive the display.

Do I need a cable to connect to this PCB from VIM? if yes, which Model?

Of course you need a cable! What else?
www.aliexpress.com/af/dupont-line.html

how many pins?
which option?
male-male
female-female
male-female