I'm a beginner, I'm currently studying arduino and working with it. I have created a small circuit that, at the touch of a button, outputs true ( 1 ) or false (0) to the Arduino IDE console. I had an idea: what if I create a python game with a controller on this chip. I have a question: how can I, roughly speaking, pull information from the Arduino IDE console and process it in python code. ( From Arduino IDE to Pycharm ) I'm sorry if there was such a question, keep in mind that I'm a beginner :)
I havent tried anything because i don
t even know what to try :).
I expect taking information from Arduino console, transferring it to python code and doing something with it.
I can provide you screenshots if you need.
I would suggest having the Arduino print the values you want into the serial and then have python connect to the serial, that the Arduino is connected to and read the values being sent. I would recommend using pyserial
to read the serial, as I have had successful results in the past with it. Here is the PyPI page and here is the documentation.