October 14, 2021, 6:51am
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
October 14, 2021, 8:37am
@Chirag Which one firmware you used ? This is already pre-installed in the system
October 14, 2021, 10:20am
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:
A miniature OLED display is a cheap and easy add-on for the Raspberry Pi. Using the I2C interface OLED displays provide a great way to display text, shapes or images on a tiny screen. Python libraries are available which you can use in your own...
Estimated reading time: 8 minutes
Do you have any clue where should I make any changes.
October 14, 2021, 10:27am
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!!
October 14, 2021, 10:45am
@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.
October 14, 2021, 10:52am
Yes, I am using VIM3L not edge*.
October 14, 2021, 10:58am
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: 220.127.116.11]: errno=Connection refused
git.drogon.net[1: 2a03:9800:10:7b::2]: errno=Network is unreachable
October 15, 2021, 12:51am
@Chirag If you use VIM3L, Already pre-installed in the system. If you need to modified the source code ,you should clone this.