Difference between revisions of "Micropython"
Kyoungmeyer (talk | contribs) (Add Thonny section.) |
|||
Line 38: | Line 38: | ||
* [[ Wifi_and_mqtt_on_the_rs9113 | Wifi and MQTT on the RS9113 ]] | * [[ Wifi_and_mqtt_on_the_rs9113 | Wifi and MQTT on the RS9113 ]] | ||
* [http://wiki.emacinc.com/wiki/Cutipy_Test Test Software for CutiPy] | * [http://wiki.emacinc.com/wiki/Cutipy_Test Test Software for CutiPy] | ||
+ | |||
+ | === Development Environment === | ||
+ | EMAC has developed a plugin for the [https://thonny.org/ Thonny] IDE to make writing code for the CutiPy and MitiPy easier. Thonny can be used for editing files directly on the CutiPy/MitiPy boards as well as adding new files. | ||
+ | ==== Installation ==== | ||
+ | # Install Thonny with apt: <syntaxhighlight>sudo apt install thonny</syntaxhighlight> | ||
+ | # Install the <code>thonny-emac</code> plugin from within Thonny. | ||
+ | ## Open Thonny | ||
+ | ## Click <code>Tools->Manage Plugins...</code> | ||
+ | ## Type "thonny-emac" into the search bar, then click search | ||
+ | ## Click the "thonny-emac" link | ||
+ | ## Click the "Install" button | ||
+ | ## Restart Thonny to complete installation | ||
+ | # Configure Thonny for EMAC boards | ||
+ | ## Go to <code>Tools->Options...</code> | ||
+ | ## Click the "Interpreter" tab | ||
+ | ## Select "Micropython (EMAC CutiPy/MitiPy)" from the top dropdown menu | ||
+ | Developing on Thonny should now be configured for EMAC boards. General Thonny documentation can be found on [https://github.com/thonny/thonny/wiki/MicroPython the Thonny wiki]. | ||
{{:Templateimpl:whatnext | initials=BS | title=Getting Started with the EMAC OE SDK | desc=Basic tutorial for using the EMAC OE SDK. | project=OE 5.0 }} | {{:Templateimpl:whatnext | initials=BS | title=Getting Started with the EMAC OE SDK | desc=Basic tutorial for using the EMAC OE SDK. | project=OE 5.0 }} | ||
* [[ Industial_IoT_Boards | Boards that use Micropython ]] | * [[ Industial_IoT_Boards | Boards that use Micropython ]] |
Revision as of 14:52, 10 June 2021
Micropython is an implementation of the Python 3 programming langauge optimized to run on microcontrollers in a constrained environment.
Micropython requires only 256k of code space and 16k RAM and aims to be as compatible as possible with normal Python 3 to allow for easy portability from desktop to microcontroller.
For full documentation on Micropython, visit: Micropython Documentation
Contents
General Information
Tools Required
- Desktop PC
- USB to mini-USB cable
- Serial to USB converter (optional, may be required if board does not have USB)
- STLink programmer (optional, may be required if board does not have USB)
Setup
EMAC Micropython
EMAC has developed multiple drivers and features for our products running Micropython.
Documentation on specific features is listed below:
Development Environment
EMAC has developed a plugin for the Thonny IDE to make writing code for the CutiPy and MitiPy easier. Thonny can be used for editing files directly on the CutiPy/MitiPy boards as well as adding new files.
Installation
- Install Thonny with apt:
sudo apt install thonny
- Install the
thonny-emac
plugin from within Thonny.- Open Thonny
- Click
Tools->Manage Plugins...
- Type "thonny-emac" into the search bar, then click search
- Click the "thonny-emac" link
- Click the "Install" button
- Restart Thonny to complete installation
- Configure Thonny for EMAC boards
- Go to
Tools->Options...
- Click the "Interpreter" tab
- Select "Micropython (EMAC CutiPy/MitiPy)" from the top dropdown menu
- Go to
Developing on Thonny should now be configured for EMAC boards. General Thonny documentation can be found on the Thonny wiki.