This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import digitalio | |
import time | |
DS1302_REG_SECOND = (0x80) | |
DS1302_REG_MINUTE = (0x82) | |
DS1302_REG_HOUR = (0x84) | |
DS1302_REG_DAY = (0x86) | |
DS1302_REG_MONTH = (0x88) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import time, strftime, localtime | |
class StopWatch: | |
def __init__(self): | |
self.start_time = 0 | |
self.pause_time = 0 # time spent on pause | |
self.on_pause = False | |
def start(self): |