# Bibliothek: my_touch_sensors.py from machine import Pin, TouchPad, sleep ripcords = [] # eng: Reißzwecken values = [] # threshold = 250 def init(*pins): for pin in pins: ripcords.append( TouchPad(Pin(pin)) ) values.append( 0 ) def read_all_row_data(): wert = 0 index = 0 for rc in ripcords: values[index] = rc.read() print(values[index]) index += 1 def read_all(): index = 0 for rc in ripcords: values[index] = rc.read()0: wert = True for i in indexes: wert = wert and ripcords[i].read()