From 3d5af9abe4b61eabca37142c6e9c781976f0ca2a Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Wed, 3 Jul 2019 14:22:21 +0200 Subject: [PATCH] Script execution --- script/local.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/local.py b/script/local.py index 828cfd3..0eaf709 100644 --- a/script/local.py +++ b/script/local.py @@ -36,6 +36,13 @@ def close_shutter(): """ shutter.write("Off") + +def transm_up(factor = 10.0): + transm.write(min(transm.read() * factor, 1.0)) + +def transm_down(factor = 10.0): + transm.write(transm.read() / factor) + ################################################################################################### # Pseudo-devices ###################################################################################################