Please Help: reseting the count of variable in a while loop

from microbit import * from ssd1306 import initialize, clear_oled from ssd1306_stamp import draw_stamp from ssd1306_img import create_stamp from ssd1306_text import add_text import utime as time window = [] threshold = 550 # limit count = 0 sample = 0 beat = False start = False good = create_stamp(Image.HAPPY) bad = create_stamp(Image.SAD) heart = create_stamp(Image.HEART) values… Read More Please Help: reseting the count of variable in a while loop