Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10s => Topic started by: yoann_q on June 24, 2014, 10:07:19 AM

Title: how to acccess TWI I2C with python
Post by: yoann_q on June 24, 2014, 10:07:19 AM
hi,
i want to communicate with ADXL accelerometer using I2C interface using python , i haven't try anything for the momment but is there any example to start ?
best regards
Title: Re: how to acccess TWI I2C with python
Post by: martinayotte on June 24, 2014, 04:58:40 PM
The I2C library in Python is called "smbus". You can install it using "apt-get install python-smbus".
Title: Re: how to acccess TWI I2C with python
Post by: yoann_q on June 26, 2014, 12:05:13 AM
It works perfectly thanks Martin