Hello.
I wanted to try the routines to use the BME280 module that I would like to use in my next project.
If they are used with hardware I2C they do not give any problems.
But if I use them in software mode, this error occurs:
This calls the I2CRecieve with one parameter and that parameter is incorrect. BME280_DataBuffer( BME280_DataBuffer_Pointer, ACK ) is an invalid variable which is the error.
Change the library to I2CReceive BME280_DataBuffer( BME280_DataBuffer_Pointer) , ACK
Anobium
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I wanted to try the routines to use the BME280 module that I would like to use in my next project.
If they are used with hardware I2C they do not give any problems.
But if I use them in software mode, this error occurs:
Errors have been found:
bme280.h (612): Error: Invalid variable name: BME280_DATABUFFER_POINTER,255
bme280.h (614): Error: Invalid variable name: BME280GETBYTEDATA,0
I attach the two files
Solved !
The problem consists in the parentheses at the end of the lines.
I mark it so you can correct it in the next release.
The following code in the library is incorrect. This could never have worked.
I2CReceive BME280_DataBuffer( BME280_DataBuffer_Pointer, ACK )
This calls the I2CRecieve with one parameter and that parameter is incorrect.
BME280_DataBuffer( BME280_DataBuffer_Pointer, ACK )
is an invalid variable which is the error.Change the library to
I2CReceive BME280_DataBuffer( BME280_DataBuffer_Pointer) , ACK
Anobium
I have updated the library for the next release.
:-)