wizard23

Member Since: October 8, 2012

Country: Austria

  • Product COM-10953 | about 2 years ago

    I adapted the I2C library used in the example code to work with the new Arduino Leonardo which uses an ATMEGA32U4 instead of an ATMEGA328.

    I’ve uploaded the changed i2c.h file to a bitbucket repository in case anyone else is interested in that: https://bitbucket.org/wizard23/arduinoleonardolibraries/src/39d52819baae/i2c.h

    If you just replace the i2c.h from the above Example Code then it should work on the arduino Leonardo (or any other ATMEGA32U4 board)

    The only thing I had to change was the definitions of WRITE_sda and READ_sda because that pin is on a different port on the ATMEGA32U4.

    I used the sensor in my own design (thanks sparkfun for the eagle library (although I had to adapt it because the NC pins are not connected to the package and according to Freescale Application Note AN4077 you should connect dummy traces to the NC pins…)) and now I can already read the sensor values :)…thanks again to sparkfun for this awesome code example!

  • Product SEN-10955 | about 2 years ago

    I adapted the I2C library used in the example code to work with the new Arduino Leonardo which uses an ATMEGA32U4 instead of an ATMEGA328.

    I’ve uploaded the changed i2c.h file to a bitbucket repository in case anyone else is interested in that: https://bitbucket.org/wizard23/arduinoleonardolibraries/src/39d52819baae/i2c.h

    If you just replace the i2c.h from the above Example Code then it should work on the arduino Leonardo (or any other ATMEGA32U4 board)

    The only thing I had to change was the definitions of WRITE_sda and READ_sda because that pin is on a different port on the ATMEGA32U4.

    I used the sensor in my own design (thanks sparkfun for the eagle library (although I had to adapt it because the NC pins are not connected to the package and according to Freescale Application Note AN4077 you should connect dummy traces to the NC pins…)) and now I can already read the sensor values :)…thanks again to sparkfun for this awesome code example!

No public wish lists :(