Modifications

Sauter à la navigation Sauter à la recherche
1 527 octets ajoutés ,  13 mars 2017 à 13:47
aucun résumé de modification
Ligne 2 : Ligne 2 :     
{{traduction}}
 
{{traduction}}
 +
 +
== Pymakr - présentation ==
 +
TODO
 +
 +
[[Fichier:Hack-pycom-lopy-Pymakr-00.png]]
 +
 +
== Ressources ==
 +
Liens de téléchargement:
 +
* [https://www.pycom.io/solutions/pymakr/ Télécharger Pymakr].
 +
* [http://www.ftdichip.com/Drivers/D2XX.htm Pilote FTDI].
 +
 +
Vous pouvez également trouver le code source sur Github:
 +
* [https://github.com/pycom/Pymakr Code source de Pymakr].
 +
* [https://github.com/pycom/Pymakr-kitchen Pymakr-kitchen build tool] (''Outil de compilation maison pour Pymakr'').
 +
 +
Pymakr dispose d'une système de greffons (''plugin'') et dispose déjà d'un premier greffons pour Pymaker.
 +
* [https://github.com/wakatime/eric6-wakatime/ Greffons WakaTime pour Pymakr].
 +
 +
== Créer un projet ==
 +
Pymakr has a feature to sync and run your code on your device. This is mostly done using projects. The following steps will get you started.
 +
* In Pymakr, go to Project > New project.
 +
* Give it a name and select a folder for your project, either a new of existing one.
 +
* Create two files: main.py and boot.py, if you don’t already have those.
 +
 +
{{ambox|text=You can also [[xx|use FTP]] to download boot.py and main.py from the board to your project folder, after which you can right-click the project viewer and use the ‘add source files’ option to add them to your project.}}
 +
 +
The boot.py file should always have the following code on the top, so we can run our python scripts over serial or telnet:
 +
 +
<syntaxhighlight lang="python">
 +
from machine import UART
 +
import os
 +
uart = UART(0, 115200)
 +
os.dupterm(uart)
 +
</syntaxhighlight>
 +
    
[https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html#pymakr-ide https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html#pymakr-ide]
 
[https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html#pymakr-ide https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html#pymakr-ide]
29 917

modifications

Menu de navigation