Running Python on a Microcontroller With only 240kB Memory Footprint!Monday, May 30, 2016
With that said, if you have programmed in both C language and Python language before, you will know how much quicker it is to implement code and debug using Python. No compilation is needed so code can be executed directly "on the fly". You can literary program and quickly prototype an embedded system with Python in minutes because of how much simpler and smaller Python code is.
The C language has been the go-to programming language for programming micro controllers for quite sometime now and it's not surprising since you get plenty of memory, low level access and speed efficiency when programming a microcontroller using C language.
Having said this, if you're a die-hard fan of Python and love programming using the Python language you're going to love programming in Python even more thanks to up and coming solutions such as Micro Python!
What makes Micro Python especial is that it is a compact python compiler that uses memory more efficiently by compiling functions according to speed, memory use and functionality (and it also includes an inline assembler).
Micro Python +Python works on Linux +Linux, Windows, Mac and programming is done via any text editor. Also, it can run with or without a PC. When connected to a PC via USB cable, it acts like a USB flash drive, allowing you to copy python scripts across like you normally would, and when the board reboots it runs the scripts.
Micro Python is designed to run on microcontroller boards such as Espruino Pico, Arduino Mega (via Pymite), WiPy, Pyboard and the Linux-based Arduino Yun which can also run Python code thanks to its AVR chip and MIPS chip. You can also run Micro Python on other microcontroller boards.