[fix] cleaning up
This commit is contained in:
parent
48770457fc
commit
8a6de3f4ec
3 changed files with 190 additions and 6 deletions
|
|
@ -29,7 +29,10 @@ class Clitools:
|
|||
if( elapsed < self.looptime ):
|
||||
delta = self.looptime - elapsed
|
||||
time.sleep( delta )
|
||||
self.debug(self.name + " micro sleep:" + str( delta ))
|
||||
|
||||
def rgb2int(rgb):
|
||||
return int('0x%02x%02x%02x' % tuple(rgb),0)
|
||||
|
||||
def msNow():
|
||||
return time.time()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue