Desirably the library should follow any specific guidelines from the device manufacturer, as well as general software good practice. Desirably, the API should be easy for a beginner with simple requirements to get started, while providing for full exploitation of the device capabilities. Library features and capabilitiesĪ library is a piece of software that provides an Application Programming Interface (API) for a programmer to exercise the capabilities of the device, without necessarily having to deal with all the fine-grain details. It seems to have worked out OK.įeedback, especially any suggestions for improvements, will be appreciated. ![]() To find out which type it is, you have to look at the (miniscule) writing on the sensor itself, or test the device ID byte. Even many of the modules being sold (for example on Ebay and AliExpress) are labelled BME/P280. The hardware for the two device types is fully interchangeable. This raises the question, one library for both, or two separate libraries. There are additional registers and steps needed to read humidity, applicable to the BME280 only. The BME280 is "backward-compatible" with the BMP280 - that is, all the registers and the steps needed to read pressure and temperature from the BME280 are the same as those used for the BMP280. ![]() Subsequently I had a need to use a BME280, which adds humidity measurement to the pressure and temperature capability of the BMP280. That project is not yet finished, but I think the library is ready to share with others. It "happened" as a side-effect of a project I started that uses a BMP280.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |