Difference between revisions of "Micropython"

From wiki.emacinc.com
Jump to: navigation, search
(Created page with "{{#seo: |title=Getting Started with Qt Creator |titlemode=append |keywords=Qt Creator, Tutorial, Qt Creator Examples |description=The following page can be used to get familia...")
 
m (Added Windows Install option to instructions for Thonny)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#seo:
 
{{#seo:
|title=Getting Started with Qt Creator
+
|title=Micropython
 
|titlemode=append
 
|titlemode=append
|keywords=Qt Creator, Tutorial, Qt Creator Examples
+
|keywords=Micropython
|description=The following page can be used to get familiarized with EMAC Qt Creator.
+
|description=The following page can be used to get familiarized with Micropython on EMAC products.
 
}}
 
}}
 
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /****************************************  Page Description Text  ****************************************/ -->
 
<!-- /****************************************  Page Description Text  ****************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
<span style="background:#00FF00;color:#FF0000;font-size:300%"></span>
+
Micropython is an implementation of the Python 3 programming langauge optimized to run on microcontrollers in a constrained environment.
The following page demonstrates the process of getting familiar with EMAC Qt Creator and running it on the target machine.
+
 
__TOC__
+
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: [http://docs.micropython.org/en/latest/pyboard/ Micropython Documentation]
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /***************************************** Background Information ****************************************/ -->
 
<!-- /***************************************** Background Information ****************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*****************************************  General Information  *****************************************/ -->
 
<!-- /*****************************************  General Information  *****************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
{{:Templateimpl:geninfo | initials=BS | title=Getting Started with Qt Creator | desc=The following page can be used to get familiarized with EMAC Qt Creator. | project=OE 5.0 }}
+
{{:Templateimpl:geninfo | initials=BS | title=Micropython | desc=The following page can be used to get familiarized with Micropython on EMAC products. | project=OE 5.0 }}
 
=== Tools Required ===
 
=== Tools Required ===
These tools should already be installed if you installed the EMAC SDK using the automatic installer.
+
* Desktop PC
* [[Getting_Started_with_the_EMAC_OE_SDK | EMAC OE 5.X SDK]]
+
* USB to mini-USB cable
* EMAC Qt Creator
+
* Serial to USB converter (optional, may be required if board does not have USB)
* GNU <code>make</code>
+
* STLink programmer (optional, may be required if board does not have USB)
* CMake
 
 
=== Setup ===  
 
=== Setup ===  
# Make sure the system has the [[Getting_Started_with_the_EMAC_OE_SDK | EMAC OE 5.X SDK and tools installed. ]]
+
* [[STLink | STLink]]
# Launch EMAC Qt Creator.
 
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*****************************************  Using/Working With  ******************************************/ -->
 
<!-- /*****************************************  Using/Working With  ******************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
{{:Templateimpl:using | initials=BS | title=Getting Started with Qt Creator | desc=The following page can be used to get familiarized with EMAC Qt Creator. | project=OE 5.0 }}
+
{{:Templateimpl:using | initials=BS | title=EMAC Micropython | desc=The following page can be used to get familiarized with Micropython on EMAC products. | project=OE 5.0 }}
 +
EMAC has developed multiple drivers and features for our products running Micropython.
  
<!-- /*********************************************************************************************************/ -->
+
Documentation on specific features is listed below:  
<!-- /******************************************    Conclusion      ******************************************/ -->
 
<!-- /*********************************************************************************************************/ -->
 
{{:Templateimpl:conclusion | initials=BS | title=Getting Started with Qt Creator | desc=The following page can be used to get familiarized with EMAC Qt Creator. | project=OE 5.0 }}
 
This page is a quick getting started tutorial on how to use EMAC Qt Creator for the first time. It shows you how to create an EMAC C Project, how to set up the necessary kits for your target board, how to set up your target board, and how to build and run example projects.
 
  
 +
* [[ Micropython_Bluemix | Micropython with IBM Bluemix ]]
 +
* [[ Wifi_and_mqtt_on_the_rs9113 | Wifi and MQTT on the RS9113 ]]
 +
* [http://wiki.emacinc.com/wiki/Cutipy_Test Test Software for CutiPy]
  
<!-- /*********************************************************************************************************/ -->
+
=== Development Environment ===
<!-- /******************************************  More Information  *****************************************/ -->
+
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 ====
<!--{{:Templateimpl:moreinfo | initials=BS | title=Getting Started with the EMAC OE SDK | desc=Basic tutorial for using the EMAC OE SDK. | project=OE 5.0 }}
+
# Install Thonny with apt for Linux: <syntaxhighlight>sudo apt install thonny</syntaxhighlight> or for Windows: [https://github.com/thonny/thonny/releases/download/v3.3.10/thonny-3.3.10.exe Download Link]
* -->
+
# 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 }}
* [[Getting_Started_with_the_EMAC_OE_SDK | Getting Started with the EMAC OE SDK ]]
+
* [[ Industial_IoT_Boards | Boards that use Micropython ]]

Latest revision as of 10:30, 21 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

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

  1. Install Thonny with apt for Linux:
    sudo apt install thonny
    or for Windows: Download Link
  2. Install the thonny-emac plugin from within Thonny.
    1. Open Thonny
    2. Click Tools->Manage Plugins...
    3. Type "thonny-emac" into the search bar, then click search
    4. Click the "thonny-emac" link
    5. Click the "Install" button
    6. Restart Thonny to complete installation
  3. Configure Thonny for EMAC boards
    1. Go to Tools->Options...
    2. Click the "Interpreter" tab
    3. 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 the Thonny wiki.

Pages with Related Content