Results 1 to 4 of 4

Thread: I2C control question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2012
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: I2C control question

    Hi

    I would be interested to learn how to setup the Qt environment on the Gumstix Overo.
    As for the I2C issue, google returns lots of pages about I2C communication ...

    Brahim

  2. #2
    Join Date
    Dec 2011
    Posts
    27
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I2C control question

    Just a point here...

    You put data into a buffer, then call write() without checking its return value, and then call read() with the same buffer without checking its return value. Then, you happen to print out the first byte which just happens to have the exact same value as the first byte you wrote into the buffer. Why not check the return value of read() to see how many bytes were actually read from the file?

Similar Threads

  1. QT - Navigational Control.
    By Girija in forum Qt Programming
    Replies: 6
    Last Post: 23rd September 2010, 14:36
  2. Replies: 0
    Last Post: 16th December 2009, 09:45
  3. How to rotate the control?
    By tszzp in forum Qt Programming
    Replies: 9
    Last Post: 25th November 2009, 09:05
  4. Control name
    By sonuani in forum Newbie
    Replies: 7
    Last Post: 22nd February 2008, 10:28
  5. UIC eol control
    By Max Yaffe in forum Qt Tools
    Replies: 0
    Last Post: 13th July 2007, 20:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.