Driver for BMP085 pressure sensor
i have BMP085 sensor which supports pressure and temperature measuring and works via IIC, i've found a driver for it but i can't compile it on Cloud:
fatal error: linux/module.h: No such file or directory
Is there a way to compile it or should i look for another solution?
I've used BMP180.py (from https://community.onion.io/topic/120/python-code-for-bmp180, thanks to @pedro-baco), it works fine, but i've added converting to mm Hg:
p = Decimal( p / 1.3332239 )
p = round( p, 0 )
p = p / 100
from decimal import Decimal
at the beginning (don't forget to run opkg install python-decimal).
I wrote my library on PHP: https://github.com/VBaczynski/phpi2c
And the sensor reader: https://github.com/VBaczynski/bmp-sensor-reader
It works much faster then the Python version. (I don't know why...)