I2C OLED display using wiringpi

Hello,

I have managed to install wiringpi from this :

although gpio -h command do not works, it seems that wiringpi is not installed propperly.

I am using LXDE image that I have build using fenix tool.
My ultimate goal is to interface I2C OLED display to VIM3L or in general interface I2C devices and read/write real time data using python script.

Any suggestions will be very helpful
Thank You.

@Chirag Which one firmware you used ? This is already pre-installed in the system

as I said I am using LXDE image that I have build using fenix, which do not have wiringpi pre installed,

But anyway, I checked other image XFCE provided in krescue list, - where wiringpi is installed and gpio command works, So can you guide me through general I2C interface code in python.

In general I am trying to do this on Khadas:

Do you have any clue where should I make any changes.

Thank You.

I am having a this error,

Traceback (most recent call last):
File “animate.py”, line 24, in
import Adafruit_GPIO.SPI as SPI
ImportError: No module named Adafruit_GPIO.SPI

Is it because of python version or file directory!!

@Chirag I don’t think this can be used on Edge. I only ported the SPI function on VIM3. You can refer to this commit to modify Edge.

Yes, I am using VIM3L not edge*.

Your work is good on this,

but I can not clone:
git clone git://git.drogon.net/wiringPi

Cloning into ‘wiringPi’…
fatal: unable to connect to git.drogon.net:
git.drogon.net[0: 188.246.205.22]: errno=Connection refused
git.drogon.net[1: 2a03:9800:10:7b::2]: errno=Network is unreachable

@Chirag If you use VIM3L, Already pre-installed in the system. If you need to modified the source code ,you should clone this.