QT functions for I2C
-
I develop an application witch Qt wich aims to contol an OLED display. The goal is to be able to initialiaze OLED's registers via I2C.
My question is what are the I2C Qt functions i could use to have an access and do read and write operations via I2C.
I am a beginner in Qt , i went through the documentation i found a lot of functions , i am a little bit lost , could someone guide me please. -
Hi and welcome to devnet,
There are no such functions in Qt as it is out of scope. If you are on Linux you are likely looking for something like Debian's libi2c-dev package
-
I didn't understand your answer , could you explain more please.
To my knowlegde libi2c-dev package is a userspace I2C programming library development files , How can i use this in my QT Application .
thanks
@yasoua said in QT functions for I2C:
How can i use this in my QT Application
Like any other library: https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
-
@jsulm said in QT functions for I2C:
@yasoua said in QT functions for I2C:
How can i use this in my QT Application
Like any other library: https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
I understand , Thank you for your help
-
If your host support an I2C interface (has an appropriate HW), then you can use direct I2C access without of any libraries: https://www.kernel.org/doc/Documentation/i2c/dev-interface
PS: Take a Google in help...