Can I use python to Program microcontrollers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I use python to Program microcontrollers?

As Usual Low-level languages ​​are used, but Can Can I use python to Program microcontrollers?(In theory)

12th Mar 2018, 12:47 PM
Никита
10 Answers
0
@Никита ассемблер - это через чур. Современные решения позволяют намного проще писать для микроконтроллеров. Тот же micropython или вот arduino, например.
12th Mar 2018, 2:56 PM
strawdog
strawdog - avatar
+ 5
Definitely, you can! MicroPython MicroPython is a lean and efficient implementation of the Python 3programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. The MicroPython pyboard is a compact electronic circuit board that runs MicroPython on the bare metal, giving you a low-level Python operating system that can be used to control all kinds of electronic projects. MicroPython is packed full of advanced features such as an interactive prompt, arbitrary precision integers, closures, list comprehension, generators, exception handling and more. Yet it is compact enough to fit and run within just 256k of code space and 16k of RAM. MicroPython aims to be as compatible with normal Python as possible to allow you to transfer code with ease from the desktop to a microcontroller or embedded system. For details: https://micropython.org More: Just Google search -- Python for micro controller Sorry, unable to provide Google link due to my internet speed deteriorated 😢
12th Mar 2018, 1:42 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 2
Due to the very nature of microcontrollers, I believe, using a high level languages to program them is futile. It is like adding a spoiler to a skateboard hoping it will eventually fly. It will neither fly nor let you skate properly.
12th Mar 2018, 1:26 PM
strawdog
strawdog - avatar
0
Спасибо, то есть только на машинных языках нужно писать
12th Mar 2018, 1:41 PM
Никита
0
@Никита Высокруровневые языки разве что как врапперы можно использовать. А так, все равно всё сведётся к набору элементарных команд и простейших вычислений.
12th Mar 2018, 2:33 PM
strawdog
strawdog - avatar
0
Был опыт программирования на ассемблере, с большим трудом справился, думал может существует возможность на высокоуровневых писать для них код. Спасибо за ответ)
12th Mar 2018, 2:42 PM
Никита
0
Ну так в даташите написано было, старый сигнальный процессор
12th Mar 2018, 3:02 PM
Никита
0
@Maxim Можете посоветовать хорошую среда разработки на питоне?
13th Mar 2018, 7:30 PM
Никита
0
@Никита, лично я использую Wing IDE (там есть бесплатная комплектация). Но я не разработчик, я только учусь 😁
13th Mar 2018, 8:13 PM
strawdog
strawdog - avatar
0
Я использую пайчарм, но он сильно нагружает цп, хотел бы использовать что нибудь, где есть подобие emmet в sublime
13th Mar 2018, 8:14 PM
Никита