Building a weather station
We start our journey through the world of Internet of Things (IoT) and Wasm by building a weather station. In our first project of this chapter, we are going to build a program that displays weather data on an ST7735 display. We are going to build some reusable components that we are going to utilize in the final project of the chapter. We are going to learn how to use a BME280 sensor that is able to sense air pressure, temperature, and humidity—the elements required for noting a change in the weather. But first, we need to assemble a circuit—so, let's see how that works.
Assembling the circuit
Before we are able to read and display the sensor data, we need to assemble the circuit. We are connecting the BME/BMP280 sensor using the I2C interface, and we are going to connect the ST7735 display using the SPI interface. To do so, perform the following steps:
- Place the BME/BMP280 sensor with serial data pin (SDA) in F21.
- Connect...