fix set_pos
Signed-off-by: Thomas Schmid <tom@lfence.de>
This commit is contained in:
parent
838a739b7c
commit
ea5d0a7e5c
2
main.py
2
main.py
@ -46,7 +46,7 @@ class Laser:
|
|||||||
|
|
||||||
def set_pos(self, x, y):
|
def set_pos(self, x, y):
|
||||||
x = clamp(x, 1, 127)
|
x = clamp(x, 1, 127)
|
||||||
y = clamp(x, 1, 127)
|
y = clamp(y, 1, 127)
|
||||||
self._set_channel(5, x)
|
self._set_channel(5, x)
|
||||||
self._set_channel(6, y)
|
self._set_channel(6, y)
|
||||||
self._send_channels([5,6])
|
self._send_channels([5,6])
|
||||||
|
Loading…
Reference in New Issue
Block a user