import machine, time # mögliche GPIO-Ports für Touch tp_pins = {4, 0, 2, 15, 13, 12, 14, 27, 33, 32} tp = {} # Touch Ports definieren for pin in tp_pins: tp[pin] = machine.TouchPad(machine.Pin(pin)) for pin in tp_pins: # Touch Ports definieren try: print(f' {pin:3d} {tp[pin].read():5}') except: print(f' {pin:3d} - ERROR')