Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT functions for I2C
Forum Update on Monday, May 27th 2025

QT functions for I2C

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 3.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yasoua
    wrote on 30 Apr 2020, 12:15 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Apr 2020, 12:22 last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Y Offline
        Y Offline
        yasoua
        wrote on 30 Apr 2020, 13:56 last edited by
        #3

        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

        J 1 Reply Last reply 30 Apr 2020, 14:10
        0
        • Y yasoua
          30 Apr 2020, 13:56

          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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 30 Apr 2020, 14:10 last edited by
          #4

          @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

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • Y Offline
            Y Offline
            yasoua
            wrote on 30 Apr 2020, 14:17 last edited by
            #5

            @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

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kuzulis
              Qt Champions 2020
              wrote on 30 Apr 2020, 15:37 last edited by kuzulis 5 Jan 2020, 10:47
              #6

              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 Reply Last reply
              1

              1/6

              30 Apr 2020, 12:15

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved