Home › Forum › Software › Opensource KIT1 firmware › Reply To: Opensource KIT1 firmware
awesome stuff!
I successfully updated the firmware.
I compiled it on linux with only small changes (case sensitive fs, BME280.h vs bme280.h).
I tried to hook up my bme280 breakout board (from sparkfun, https://www.sparkfun.com/products/13676 ) but had some issues and would have a couple of questions.
1. #define BME280_ADDR (0x76<<1) //0x77 default I2C address
is this correct ? Since 0x76 << 1 is not 0x77
2. should SDA/SLC be pulled high?
3. After some debugging, it seems that the initial i2c communication breaks on the first try here:
if (i2c_start_wait(address | I2C_WRITE)) return I2C_ERROR;
in readmem() when it tries to read the ID from 0xd0.
This seems to be the first check that returns an error:
if((TWSR & 0xF8) != 0x08) return 1;
in i2c_start_wait()
Any hints on what I might need to change ?
Thanks for the good work , cheers!