def init(self): # hinweis filmdatei # die Rätsel sind linear self.hints = [ beat_the_room.make_hint(self, "test.avi"), beat_the_room.make_hint(self, "hinweis2.avi") ]
def init(self): #Annika und Johann Versuch zum Klopfrätsel #Sollte einmaliges Klopfen erkennen # hinweis filmdatei # die Rätsel sind linear self.hints = [beat_the_room.make_hint( self, "test.avi"), beat_the_room.make_hint(self, "hinweis2.avi")] # print("Init(42)") # INITIALISIERE SENSOREN / HARDWARE global GPIO_PIN=24 GPIO.setmode(GPIO.BCM) GPIO.setup(GPIO_PIN, GPIO.IN)
def init(self): # hinweis filmdatei # die Rätsel sind linear self.hints = [ beat_the_room.make_hint(self, "test.avi"), beat_the_room.make_hint(self, "hinweis2.avi") ] self.id = 42 print("Init(42)") # Rätsel erstellt von: Leo Wenzel # INITIALISIERE SENSOREN / HARDWARE GPIO.setmode(GPIO.BCM) GPIO.setup(21, GPIO.IN)
def init(self): GPIO.cleanup() # hinweis filmdatei # die Rätsel sind linear os.system("tvservice -o") self.hints = [ beat_the_room.make_hint(self, "test.avi"), beat_the_room.make_hint(self, "hinweis2.avi") ] # Rätsel erstellt von: Leo Wenzel # INITIALISIERE SENSOREN / HARDWARE GPIO.setmode(GPIO.BCM) GPIO.setup(21, GPIO.IN)
def init(self): self.hints = [ beat_the_room.make_hint(self, "test.avi"), beat_the_room.make_hint(self, "hinweis2.avi") ] gpio.setmode(gpio.BCM) self.matrix = [['1', '2', '3', 'A'], ['4', '5', '6', 'B'], ['7', '8', '9', 'C'], ['*', '0', '#', 'D']] #im zweifel ausprobieren ob es klappt self.zeile = [14, 15, 18, 23] self.spalte = [24, 25, 8, 7] for j in range(4): gpio.setup(self.spalte[j], gpio.OUT) gpio.output(self.spalte[j], 1) gpio.setup(self.zeile[j], gpio.IN, pull_up_down=gpio.PUD_UP)
def init(self): GPIO.cleanup() # hinweis filmdatei # die Rätsel sind linear self.hints = [ beat_the_room.make_hint(self, "test.avi"), beat_the_room.make_hint(self, "hinweis2.avi") ] print("Init(16)") # INITIALISIERE SENSOREN / HARDWARE global GPIO_PIN GPIO_PIN = 20 self.lastKnock = 0 self.counter = 0 self.anfang = 0 self.fehlerStatus = True self.fehlerTime = 0 GPIO.setmode(GPIO.BCM) GPIO.setup(GPIO_PIN, GPIO.IN) self.anfang = time.time()