Bot'n Roll ONE A+ - Raspberry Pi 5 library
 
Loading...
Searching...
No Matches
onepi.utils.simple_timer.SimpleTimer Class Reference

Public Member Functions

 __init__ (self, increment, function)
 
 start (self)
 
 reset (self)
 
 stop (self)
 
 get_time (self)
 

Public Attributes

bool running = False
 
 increment = increment
 
 function = function
 
int time = 0
 
 timer = Timer(self.increment, self._update)
 

Protected Member Functions

 _update (self)
 
 _cancel (self)
 

The documentation for this class was generated from the following file: