How to open/use .py (Python) in Arduino?

Hello, I'm trying to recreate this project. The Youtuber provides the raw code in the description but it's all .py files. I'd like to be able to use them in Arduino. I'm also trying to combine it with this other project which only has a small portion of code. (I'm just trying to make a display play a video with sound.) What's the best way of going about this?

Porting code from one language to another is a straightforward process. Read Python code and write the C++ equivalent. Line by line.

1 Like

Anyone up for the APL translation? :joy:

Not me, but I might have an APL manual c1982 somewhere if anyone needs it...

I will try converting to c++ thank you

I looked at the Python; conversion seems straight-forward for anyone with a clear understanding of microPython and beyond average skills with Arduino C++.

The issue I have with the line-by-line method of conversion is that there is an implication that you have proficiency in both languages; but the context of your inquiry suggests that you do not have that skill level. Personally, I think you will become very frustrated.

As there is no practical application of this project as presented, I suggest you play with the ESP32 flavor of uPython and just duplicate the project as-is; some Python may rub off on you.

If you still wish to use Arduino, the following Google search will show existing ESP32 hardware and frame-buffer implementations:
ESP32 video OLED site:GitHub.com - Google Search

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