tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
604 stars 188 forks source link

bme280: improve config support #444

Closed kenbell closed 1 year ago

kenbell commented 2 years ago

This breaks back compat by adding a parameter to the "Config" method, inline with other devices.

The extra config allows the device to be used in 'Forced' mode for more power-efficient use-cases.

deadprogram commented 2 years ago

Perhaps this could be added as ConfigureWithSettings(config Config) to avoid a breaking change?

deadprogram commented 2 years ago

Thank you very much for making my requested changes @kenbell now merging!

deadprogram commented 1 year ago

Let's merge and continue from there. Thanks @kenbell