updates for pylint
This commit is contained in:
parent
dae2cafefc
commit
dba6cd7009
1 changed files with 5 additions and 4 deletions
|
|
@ -182,8 +182,9 @@ def solid():
|
|||
pixels.show()
|
||||
|
||||
def map_value(value, in_min, in_max, out_min, out_max):
|
||||
return out_min + (out_max - out_min) * ((value - in_min)
|
||||
/ (in_max - in_min))
|
||||
out_range = out_max - out_min
|
||||
in_range = in_max - in_min
|
||||
return out_min + out_range * ((value - in_min) / in_range)
|
||||
|
||||
def change_speed(val):
|
||||
global speed
|
||||
|
|
|
|||
Loading…
Reference in a new issue