Go Down

Topic: Python for Arduino Due (Read 3 times) previous topic - next topic

westfw

If pymite runs on a Maple, it should run on a Due as well.
Interpreters tend to prefer systems with lots of RAM.  The pymite docs say that it loads the user program into RAM before running it.  This means that your python code would need to be smaller than the maximum sized C program.  (OTOH, it looks like you could store more than one python program in flash and chain them.)
That's if you're happy with Pymite.  It looks a bit complicated to actually use...

jgmdavies

For anybody interested, there's a very interesting use of Python 'close to the metal' at:

http://www.eetimes.com/electronics-blogs/maxs-cool-beans-blog/4217647/IPv4--IPv6--The-Internet-of-Things--6LoWPAN--and-lots-of-other--Stuff-  (see the bit about 'SNAPpy')

Jim

ogre


Has Arduino thought about shifting away from C and toward Python?


Shifting away from C would be a crazy idea. But adding Python support while still fully supporting C could increase applications and target audience.

C and Python have different strengths, so having access to both can only result in more strength for the Arduino community.

As an example I live in Australia with a child in school and the National Computing initiatives for schools is about programming in Python. This means getting Arduino into schools is much more difficult without Python support.  There are many case where adding Python could increase the community.  However the idea of reducing C support is crazy as the whole idea would be increase the coommunity- not alienate the existing community.

So idea-  add Python support- but in no way detract from C support. 

If anything, an increased community should have even more C support!


neil12

As I understand it the benefit of pyhton is the ability to process text strings.
So for interfacing over USB to an instrument or external module there would be an easier capability to manage the input and output.
However, I don't think it replaces C++. The C++ is the machine control environment and implement the drivers and management.
So the down side is more resources - ram and flash.

Grumpy_Mike

Quote
So idea-  add Python support- but in no way detract from C support. 

Very easy to say, very hard to implement.

Go Up