BlueDot-Arduino / BlueDot_BME280

14 stars 9 forks source link

SPI Compiled into I2C Version #4

Open bobybobybob opened 6 years ago

bobybobybob commented 6 years ago

I use the parameter for i2c. After compiling with Arduino IDE i can see that SPI is in the compiler logs too.

I have manual remove all SPI from BlueDot_BME280.h and BlueDot_BME280.cpp

The Sensor work fine

Der Sketch verwendet 269983 Bytes (25%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes. Globale Variablen verwenden 34528 Bytes (42%) des dynamischen Speichers, 47392 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.

spi removed from libary code give some free bytes.

Der Sketch verwendet 268683 Bytes (25%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes. Globale Variablen verwenden 34500 Bytes (42%) des dynamischen Speichers, 47420 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.

Maybe you can modify the libary that SPI is not included when it is not need.