How to read HIGH/LOW from pin1 - python

Hi, I'm new to Arduino and Python.

I'm trying to check if pin1 is either HIGH/LOW (so if a voltage is outputting from it) using Python. Later I plan on using this method to trigger a camera but I just want to check if the pin is HIGH/LOW.

I've looked around some forums but most of them are trying to read or transfer data (e.g., string) from Arduino to Python.

I've been trying to use pyserial but had no luck for this specific task.

Any help will be greatly appreciated!

Please describe your complete setup.

Since the Arduino, under the Arduino IDE, is programmed in C/C++, what computer is supposed to run Python?

I plan on not using Arduino IDE, but instead Python on VS code. Thank you for your reply!

I doubt you will get help on this forum, as the discussion almost exclusively concerns use of the Arduino IDE and C/C++.

If you are new to both Arduino and Python, you might reconsider your decision, as there are plenty of examples on line for other approaches to the simple project you have in mind. Or, head over to Adafruit and try CircuitPython with their boards.

also worth looking at is MicroPython and ESP32 MicroPython

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.