|
|
|
|
@@ -4,7 +4,7 @@ aliases:
|
|
|
|
|
- pymakr-online/introduction
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
On this page, we discuss the functionality of Pymakr Online.
|
|
|
|
|
On this page, we discuss the functionality of Pymakr Online.
|
|
|
|
|
|
|
|
|
|
## What is Pymakr Online?
|
|
|
|
|
|
|
|
|
|
@@ -17,14 +17,20 @@ Pymakr Online is an online IDE for your MicroPython projects. We brought our Pym
|
|
|
|
|
* Import from multiple sources (blank/device/project/Github repository), export to a zip file/device/project
|
|
|
|
|
* Device activity indicator: track what's going between Pymakr Online and your device.
|
|
|
|
|
|
|
|
|
|
{{<youtube qydlJKRDzFs>}}
|
|
|
|
|
|
|
|
|
|
## Pymakr Git Demo
|
|
|
|
|
|
|
|
|
|
{{<youtube -yIdZmY6N3g>}}
|
|
|
|
|
|
|
|
|
|
## Let's get started!
|
|
|
|
|
|
|
|
|
|
There are two ways in which you can use Pymakr online.
|
|
|
|
|
There are two ways in which you can use Pymakr online.
|
|
|
|
|
1. Go to [your device](https://pybytes.pycom.io/devices) and select the `Pymakr Online` tab. This method allows you to make quick changes to the Python code on your device and upload it. This is the method we use below.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
2. Start a new project on the [Pymakr](https://pybytes.pycom.io/pymakr) tab in Pybytes. There are several different types you can choose from, including a link to your Github repository! Later, we can link the project to a release.
|
|
|
|
|
2. Start a new project on the [Pymakr](https://pybytes.pycom.io/pymakr) tab in Pybytes. There are several different types you can choose from, including a link to your Github repository! Later, we can link the project to a release.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
@@ -36,10 +42,10 @@ There are two ways in which you can use Pymakr online.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* On the left we see the files. Depending on where you started, the online environment will first load with the files you last used. If the device is online, it will automatically try to `Refresh Hierarcy` and synchronise the content. You can click the `Refresh Hierarcy` icon next to your device name to manually update the online filestructure. The online editor will automatically try to connect.
|
|
|
|
|
* In the top right, the connection status is displayed. Every so often, you will see a ping being sent out to the device to check if it is still connected. If you started pymakr from a project, you will also see the `Save/Export` button here as well.
|
|
|
|
|
* And finally, on the bottom, the REPL is displayed, this works exactly the same as the REPL you are used to in VSCode or Atom. Everything you type in there will be duplicated to the REPL over USB.
|
|
|
|
|
* In the top right, the connection status is displayed. Every so often, you will see a ping being sent out to the device to check if it is still connected. If you started pymakr from a project, you will also see the `Save/Export` button here as well.
|
|
|
|
|
* And finally, on the bottom, the REPL is displayed, this works exactly the same as the REPL you are used to in VSCode or Atom. Everything you type in there will be duplicated to the REPL over USB.
|
|
|
|
|
|
|
|
|
|
2. Open the `main.py` file, or, when not available, create one by right clicking on the device name to `Create File`. Here, we can write our own python code in the main editor. You can use the example we added below to try it out.
|
|
|
|
|
2. Open the `main.py` file, or, when not available, create one by right clicking on the device name to `Create File`. Here, we can write our own python code in the main editor. You can use the example we added below to try it out.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
@@ -61,15 +67,15 @@ There are two ways in which you can use Pymakr online.
|
|
|
|
|
|
|
|
|
|
>Note that if you make a syntax error, the device will come back online but not throw any error in the REPL.
|
|
|
|
|
|
|
|
|
|
## Creating a Project
|
|
|
|
|
## Creating a Project
|
|
|
|
|
|
|
|
|
|
1. Now that you know how to use the Pymakr Online environment, we can create a project (if you have not already). If you just followed the example above, go to the [Pymakr](https://pybytes.pycom.io/pymakr#) tab and click on `Import from Existing Device`.
|
|
|
|
|
1. Now that you know how to use the Pymakr Online environment, we can create a project (if you have not already). If you just followed the example above, go to the [Pymakr](https://pybytes.pycom.io/pymakr#) tab and click on `Import from Existing Device`.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
2. Select your device and either `Retrieve from Cloud` or `Request from device`, depending on where the latest version of your code is. This will load the hierarchy and bring up the Pymakr Online interface.
|
|
|
|
|
2. Select your device and either `Retrieve from Cloud` or `Request from device`, depending on where the latest version of your code is. This will load the hierarchy and bring up the Pymakr Online interface.
|
|
|
|
|
|
|
|
|
|
3. Make your changes and then click the `Save/Export` button, this offers three options. This time, we use `Include in Release`. It will ask us to create a new project, or add to an already existing project.
|
|
|
|
|
3. Make your changes and then click the `Save/Export` button, this offers three options. This time, we use `Include in Release`. It will ask us to create a new project, or add to an already existing project.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
@@ -78,11 +84,10 @@ There are two ways in which you can use Pymakr online.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
5. Here, it asks for the networks we want to use. For now, lets select WiFi.
|
|
|
|
|
5. Here, it asks for the networks we want to use. For now, lets select WiFi.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
6. In the next screen, it asks for the WiFi network you want to use, select the one that is most convenient for you.
|
|
|
|
|
|
|
|
|
|
7. Now that we have successfully create a project. Using projects, you can add unlimited devices and keep them all up-to-date Over The Air (OTA) with new Pybytes configuration files, Python code or update the firmware.
|
|
|
|
|
|
|
|
|
|
|