maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
803 stars 233 forks source link

Single example for BME280 sensor for temp, pressure and humidity #353

Closed codezinfinity closed 4 years ago

codezinfinity commented 4 years ago

Can you please create an example for BME280 Sensor for temp, pressure and humidity values

renandw commented 4 years ago

read this: https://github.com/HomeKidd/ESP8266-HomeKit-Weather-Station-BME280-Elgato-Eve

but you can only get the bin file.

codezinfinity commented 4 years ago

Thank you... i saw that before... but as you said, just the bin file... i needed to understand how it is done... the only one i found is a .js file at https://github.com/NorthernMan54/homebridge-bme280/blob/master/sensor.js

But this is for home bridge i guess.. how can i make it to a homekit .c file

Kristian8606 commented 4 years ago

https://github.com/Kristian8606/Temperature_sensor/blob/master/main.c This is my test code that works. tuning pins 4 and 5

codezinfinity commented 4 years ago

It has i2c pins i guess... not directly connected to esp8266 pinout. Im not sure bcoz im a beginner... but i see an i2c library added initally

maximkulkin commented 4 years ago

@CodezInfiniti you do not need to go too far, BMP280/BME280 driver is part of ESP-OPENT-RTOS distribution. And here is an example on how to use it.

codezinfinity commented 4 years ago

It has i2c pins i guess... not directly connected to esp8266 pinout. Im not sure bcoz im a beginner... but i see an i2c library added initally

Sorry...im wrong