# this it the main programing where the mcu decides everthing
import machine
import time
# required imports
import pumpcontroller as pmcntrl
import espnows as espn
import display as dsply
# ---- while booting-------
# display update and buzzer
# required inittilaizations espnow and wifi
TANK_FULL_LIMIT = 95 # tank full limit in percentage
TANK_LOW_LIMIT = 25 # tank low limit in percentage
def cook(data):
# this is a sub funcition which is resposible for swithing or or off the pump
def main():
# this is the main method which is resposible for the ain logic of the mcu
data = espn.recive_data()
if data :
dsply.update(data)