serial.write using a physical push button

Hi…

I’m working on a simple project to test a bunch of electrical wires simultaneously (continuity/short test)…

I’m using a Tkinter GUI to start the test and read the serial monitor by clicking a button widget (START)…

now … I want to add a physical push button that can behave as the START button… is that possible?

… even if I add those lines to start the arduino/serial communication but it doesn’t work…

if(digitalRead(pinSwitch) == HIGH)
Serial.write(‘l’); "

there is any chance to make it work … :frowning: ?

TESTER_TEST.ino.ino (2.89 KB)

I cannot see your code on my device. If you post the code as recommended in the how to use this forum-please read stickies everyone can see it.