I’m currently working on a project which is the wireless energy meter. Right now, i’ve to add a pushbutton to clear memory - writing “0” to the bytes in eeprom, clear the lcd and set values back to zero before it starts counting the energy consumption again, but it should not reset the whole arduino programming. I’m aware of the sketch for eeprom.clear but now, i’ve to combine program for the pushbutton and eeprom.clear and i’ve no idea how to start it. I’m using digital pin 8 for the button. Here’s my programming i’ve done so far for the wireless energy meter. Please help, thank you.
My_Programming.ino (4.33 KB)