Mix python code with arduino c code in arduino IDE

hello everyone
I have question, is there any chance that I can mix python code with arduino code (C) in arduino IDE by import particular libery allow me to do something like that

Nopeā€¦

I don't see how (but I would love to be proven wrong).

The issues I see are:

  1. Python is interpreted while Arduino is compiled.

  2. The compiler compares your code to established rules, where the Python code would fail to compile.

I moved your topic to an appropriate forum category @k-o.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @k-o. This is not an answer to the specific question you asked, but if you would like to learn about creating programs for Arduino boards in the Python language, there is information here:

https://docs.arduino.cc/micropython/

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