This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51 DK mbed I2C/TWI

Hi,

I'm currently building a BLE multi-sensors device, with mbed online IDE. I succeed in implementing BLE API, and releasing a first .hex firmware with multiple services and characteristics.

Now, I want to replace my fake characteristic values by sensor values.

I plug a BMP180 on my nRF51 dev board, with SCL and SDA connected to P0.24 and P0.25, but I don't know how to retrieve sensor values in order to broadcast them over BLE.

Any ideas on how to implement I2C communication to 77 address, and convert arduino library for mbed ?

Related