Skip to main content
Arduino

Return to Revisions

2 of 2
replaced http://stackoverflow.com/ with https://stackoverflow.com/

It's going to be extremely difficult to get any kind of Python script running directly on the Arduino. The reason is that it's an interpreted language, so you would need the interpreter on-board in addition to the plain text script. There's probably not going to be enough memory for all of that.

Your best bet would probably be finding a way to compile a Python script to native machine code (which is how C/C++ works). I believe there are projects around to do something like that for other platforms, but (as far as I know) none which does it successfully for Arduino yet.

You might find some more useful information on this question at Stack Overflow: Is there a way to "compile" Python code onto an Arduino (Uno).

Peter Bloomfield
  • 11k
  • 9
  • 48
  • 87

AltStyle によって変換されたページ (->オリジナル) /