QT functions for I2C
-
wrote on 30 Apr 2020, 12:15 last edited by
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
-
wrote on 30 Apr 2020, 13:56 last edited by
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
-
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
-
wrote on 30 Apr 2020, 14:17 last edited by
@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
-
Qt Champions 2020wrote on 30 Apr 2020, 15:37 last edited by kuzulis 5 Jan 2020, 10:47
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...
1/6