FEATHER-CHARGER-MICROPYTHON-MICROBIT

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Loading MicroPython on the BBC micro:bit is very easy. When you plug the board into your computer it will appear as a USB storage drive. If you drag a firmware .hex file to the drive it will be programmed to the board. You can use either the online BBC micro:bit code editor or the desktop mu MicroPython code editor to enter MicroPython code and push it to the board.

Note on Windows if you'd like to access the board's REPL over a serial connection you'll need to follow the Windows CDC serial driver install steps below.

With the online editor you'll download a .hex file and drag it to the microbit's drive.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

With the desktop mu editor just press the flash button with the board connected and it should automatically upload the MicroPython code & firmware to the board.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Jump to the [REPL page] in this guide to learn how to access MicroPython's 'command prompt' on the board.

Windows CDC Serial Driver Install

To access the BBC micro:bit's serial port follow the instructions to install the mbed serial port driver. Once installed the BBC micro:bit should show up as a COM port in Device Manager when connected.


Source: MicroPython Basics: How to Load MicroPython on a Board
Créé par Tony DiCola pour AdaFruit Industries.

Traduit par Meurisse D. pour MCHobby

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com