devicehive / esp8266-firmware

DeviceHive esp8266 firmware. Control hardware via clouds with DeviceHive!
MIT License
166 stars 50 forks source link

MPU-6050 and ESP8266 #5

Closed roccomuso closed 9 years ago

roccomuso commented 9 years ago

Can you share the scripts to connect the ESP-8266 to the MPU-6050 ? I'm using NodeMCU Lua and actually i got some issues working with the I2C and MPU-6050 :/

Nikolay-Kha commented 9 years ago

it's here: https://github.com/devicehive/esp8266-firmware/blob/master/examples/mpu6050-i2c.html

roccomuso commented 9 years ago

No i mean the code that handles the I2C...

Nikolay-Kha commented 9 years ago

Code is here. https://github.com/devicehive/esp8266-firmware/blob/master/firmware-src/sources/dhi2c.c But if you are looking for lua code you will not find it here. Because DeviceHive firmware is written on pure C and based only on chip manufacturer SDK.