Modifications

Sauter à la navigation Sauter à la recherche
2 619 octets ajoutés ,  19 février 2017 à 14:28
Ligne 71 : Ligne 71 :  
In a few seconds, the LED should start blinking every 4 seconds. This means that everything is fine! If you cannot see the blinking, please disconnect the power supply and re-check the boards position on the expansion board.
 
In a few seconds, the LED should start blinking every 4 seconds. This means that everything is fine! If you cannot see the blinking, please disconnect the power supply and re-check the boards position on the expansion board.
    +
[[Fichier:Hack-pycom-esp_32-20.gif]]
 +
 +
= Upgrade du FirmWare =
 +
We strongly recommend you to upgrade your firmware to the latest version as we are constantly making improvements and adding new features.
 +
 +
Here are the download links to the update tool. Please download the appropriate one for your OS and follow the instructions on the screen.
 +
* [https://software.pycom.io/findupgrade?product=pycom-firmware-updater&type=all&platform=win32&redirect=true Windows].
 +
* [https://software.pycom.io/findupgrade?product=pycom-firmware-updater&type=all&platform=macos&redirect=true MacOS] (10.11 or higher).
 +
* [https://software.pycom.io/findupgrade?product=pycom-firmware-updater&type=all&platform=unix&redirect=true Linux] (requires dialog package).
 +
 +
Previous versions of firmware are available for download on the [https://www.pycom.io/support/supportdownloads/#firmware Pycom website].
 +
 +
[[Fichier:Hack-pycom-esp_32-30.png]]
 +
 +
The instructions given by the updater tool should be followed carefully. The basic procedure is like this:
 +
* Disconnect your device from the PC.
 +
* Connect wire G23+GND using a jumper cable.
 +
* Connect the board to the USB.
 +
* Run the upgrader
 +
* Remove the G23+GND wire.
 +
* Reboot the device (button or powercycle)
 +
 +
Connecting G23 and GND puts the device in ‘update mode’. You won’t need this for any other task than using the firmware upgrader.
 +
 +
After you’re done with the upgrade, you can use Pymakr to upload and run programs in your device.
 +
 +
If you have your telnet connection or Pymakr already setup, the version can be with the following code:
 +
 +
<syntaxhighlight lang="python">
 +
import os
 +
os.uname().release
 +
</syntaxhighlight>
 +
 +
{{ambox-stop|text=Make sure the TX jumper is present on your expansion board, as the jumpers sometimes come loose in the box during transport. Without this jumper, the updater will fail.}}
 +
 +
= Introduction à MicroPython =
 +
Les cartes PyCom boards work with [https://micropython.org/ Micropython]; a Python 3 implementation that is optimised to run on micocontrollers. This allows for much faster and easier development than using C.
 +
 +
When booting, two files are executed automatically: first boot.py and then main.py. These are placed in the /flash folder on the board. Any other files or libraries can be placed here as well, and included or used from boot.py or main.py.
 +
 +
The folder structure in /flash looks like the picture below. The files can be managed either using [[Hack-pycom-esp_32-FTP|FTP]] or using [[Hack-pycom-esp_32-Pymakr|Pymakr]].
 +
 +
[[Fichier:Hack-pycom-esp_32-40.png]]
 +
 +
= Se connecter sur la carte avec Pymakr =
 +
 +
[[Hack-pycom-esp_32-Pymakr|Pymakr]]
    
{{LOPY-TRAILER}}
 
{{LOPY-TRAILER}}
29 917

modifications

Menu de navigation