TIM7 is used for microseconds delay, which will be needed for the DHT11 sensor to operate. TIM1 is used as a periodic delay, where an interrupt will be triggered every 2 seconds. We will use this interrupt to release a semaphore for DHT11 task to operate. ...
If this is the first time you work with Arduino, we strongly recommend you to seeGetting Started with Arduinobefore the start. Click to learn details abouthow to install an Arduino Library Step 1:Install theu8g2 library Step 2:Install theDHT sensor library Step 3:Copy the following code in...