Skip to content
Snippets Groups Projects
Commit dfe40945 authored by jkerdreu's avatar jkerdreu
Browse files

Nothing


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2110 b32b6428-25c9-4566-ad07-03861ab6144f
parent 9a84342a
Branches
Tags
No related merge requests found
......@@ -28,8 +28,10 @@ def main(addr):
print("%s OFF" %dev)
def dim(_target):
dimmer.value = _target
print("Dimming to %d" % _target)
val = int(_target)
if (val <= 100) and (val >=0):
dimmer.value = val
print("Dimming to %d" % val)
dev.add_method('on',on)
dev.add_method('off',off)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment