mahfuz195 / BMP280-arduino-library

This BMP280 sensor library uses I2C communication with Arduino/ESP8266 and read the Temperature( degC) , Pressure (mBar) and Altitude (m).
46 stars 18 forks source link

Fix ADC values reading & made different Arduino platforms compatible #8

Open Atominick opened 2 years ago

Atominick commented 2 years ago
  1. ADC values were summing inside uint8_t variable and overflowing. Added explicit type conversion to uint32_t
  2. Wire lib for some platforms (Arduino nano e.g.) don`t have begin(sdaPin, sclPin) method. This caused compilation error. Removed BMP280::begin(int sdaPin, int sclPin) method
  3. In _debugSerial mode in some statements variable p was changed to P as p do not exist