Hello all,
Im working on a project where I have 2 DHT22 sensors gathering data and an I2C oled display showing the readings. But I also have set up code to have a separate oled display showing a menu where the user can input temperature and humidity control settings that will activate relays to control the temp and humidity when the sensor data reads a value that is lower or higher than the input. Problem is that I cannot find a way for the sensor data to be constantly reading and displaying at the same time in the background AND be able to input data on the other menu screen. I'm using a keypad to enter in values. So far I've noticed that when I'm inputting data on the settings menu, it stops reading and displaying the sensor data. I have to code to show but it is very long with multiple tabs. I'm basically using functions for each screen of the menus.
Menu_codes.ino (4.33 KB)
Temp_change_code.ino (3.53 KB)
Magic_Box.ino (3.56 KB)