#!/usr/bin/env python3

# Python Helper to control an optical shutter
# Change code here if the optical shutter set up has changed

# Current setup involves sending an audio signal from the left (or right) channel to control a microservo
# The other mono channel is left for playing a sound when rastering is almost done
# Power source = Modified USB Cable

# Made 2019, Sun Yudong, Wu Mingsong
# sunyudong [at] outlook [dot] sg, mingsongwu [at] outlook [dot] sg

import playsound

class Shutter():
    def __init__(self):
        self.close()
        self.isOpen = False

    def close(self):
        playsound.playsound('sounds/OFF.wav')
        self.isOpen = True
        return True

    def open(self):
        playsound.playsound('sounds/ON.wav')
        self.isOpen = True
        return True

    def __enter__(self):
        return self

    def __exit__(self, e_type, e_val, traceback):
        self.close()

@@ -647,35 +647,36 @@
   self.isOpen = 
-Tru
+Fals
 e%0A        return

fix bug