{"id":623,"date":"2021-01-30T15:11:05","date_gmt":"2021-01-30T15:11:05","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=623"},"modified":"2023-11-25T20:40:52","modified_gmt":"2023-11-25T20:40:52","slug":"raspberry-pi-pico-and-micropython-on-windows","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/fr\/raspberry-pi-pico-et-micropython-on-windows\/","title":{"rendered":"Raspberry Pi Pico et MicroPython sous Windows"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image-1024x576.png\" alt=\"Raspberry Pi Pico et MicroPython sur Windows Image de titre\" class=\"wp-image-6201\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image-1024x576.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image-300x169.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image-768x432.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image-18x10.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Cet article r\u00e9pond \u00e0 la question : Comment utiliser le Raspberry Pi Pico avec MicroPython sous Windows ? Nous montrons \u00e9galement comment installer le bon pilote pour la \"carte CDC\" (que le Pico appara\u00eetra comme une fois MicroPython install\u00e9) sur Windows 8.1. (Nous discuterons \u00e9galement des diff\u00e9rences entre MicroPython et CircuitPython le cas \u00e9ch\u00e9ant - o\u00f9 la carte sera appel\u00e9e \"CircuitPython CDC Control\"). <\/p>\n\n\n\n<p>Enfin, nous montrerons comment se connecter \u00e0 la Pico en utilisant PuTTY, et une option plus confortable en utilisant Thonny (qui est un IDE Python, int\u00e9gr\u00e9 \u00e0 la Pico !).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction : Qu'est-ce que le Pico et qu'est-ce que MicroPython ?<\/h2>\n\n\n\n<p>Le site <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-pico\/\">Raspberry Pi Pico<\/a> est une nouvelle carte de microcontr\u00f4leur de Raspberry Pi, \u00e9quip\u00e9e de la puce de microcontr\u00f4leur RP2040 d\u00e9velopp\u00e9e en interne. <\/p>\n\n\n\n<p>Raspberry Pi a int\u00e9gr\u00e9 de nombreuses fonctionnalit\u00e9s int\u00e9ressantes dans la RP2040 (ma pr\u00e9f\u00e9r\u00e9e est PIO - programmable IO, qui permet d'\u00e9muler de nombreuses interfaces mat\u00e9rielles n\u00e9cessitant une synchronisation pr\u00e9cise, etc. - J'y reviendrai dans un autre article \u00e0 l'avenir), et le Pico est une plateforme de r\u00e9f\u00e9rence tr\u00e8s agr\u00e9able sur laquelle le RP2040 est impl\u00e9ment\u00e9.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-pico-mit-rp2040?variant=37942462972084\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"732\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/PICO-BOARD-ANGLE-WHITE1-1024x732.jpg\" alt=\"\" class=\"wp-image-624\" style=\"width:559px;height:399px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/PICO-BOARD-ANGLE-WHITE1-1024x732.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/PICO-BOARD-ANGLE-WHITE1-300x214.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/PICO-BOARD-ANGLE-WHITE1-768x549.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/PICO-BOARD-ANGLE-WHITE1-1536x1097.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/PICO-BOARD-ANGLE-WHITE1.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-pico-mit-rp2040?variant=37942462972084\">Raspberry Pi Pico, une carte \u00e0 microcontr\u00f4leur 4 $<\/a><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">En quoi un Raspberry Pi Pico est-il diff\u00e9rent d'un Raspberry Pi Zero W ?<\/h3>\n\n\n\n<p>La diff\u00e9rence entre un microcontr\u00f4leur (comme le <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-pico-mit-rp2040?variant=37942462972084\">Pico<\/a>) et un ordinateur monocarte (<a href=\"https:\/\/buyzero.de\/collections\/boards-kits\/products\/raspberry-pi-zero-w?variant=38399156114\">disons Pi Zero W<\/a>) est \u00e0 peu pr\u00e8s la suivante : vous programmez le Pico directement (par exemple, en C), <strong>sans syst\u00e8me d'exploitation<\/strong>, alors que le<a href=\"https:\/\/buyzero.de\/collections\/boards-kits\/products\/raspberry-pi-zero-w?variant=38399156114\"> Pi Zero W<\/a> fonctionne g\u00e9n\u00e9ralement sous Linux. <\/p>\n\n\n\n<p>Cela pr\u00e9sente des avantages, comme le temps r\u00e9el, mais aussi des inconv\u00e9nients : vous devez en savoir plus sur le mat\u00e9riel que vous utilisez et vous devez mettre en \u0153uvre un grand nombre de fonctionnalit\u00e9s que vous tiendriez pour acquises sur un syst\u00e8me d'exploitation moderne (par exemple, l'acc\u00e8s aux fichiers). <\/p>\n\n\n\n<p>Le Pico dispose de moins de ressources que le Pi Zero W (par exemple, beaucoup moins de RAM, pas de GPU VideoCore, etc.) - mais il consomme moins d'\u00e9nergie, et dispose de fonctionnalit\u00e9s suppl\u00e9mentaires, comme le PIO mentionn\u00e9 ci-dessus, et les entr\u00e9es analogiques (ADC). <\/p>\n\n\n\n<p>Le Pico est un bon choix pour les projets qui ne n\u00e9cessitent pas n\u00e9cessairement une connectivit\u00e9 r\u00e9seau, une sortie HDMI, une entr\u00e9e cam\u00e9ra et un traitement. En d'autres termes, si vous souhaitez vous interfacer avec du mat\u00e9riel, disposer d'une longue dur\u00e9e de vie de la batterie, etc.  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Quels sont les logiciels qui existent d\u00e9j\u00e0 pour le Pico ?<\/h3>\n\n\n\n<p>Le Pico peut \u00eatre flash\u00e9 \u00e0 l'aide de diff\u00e9rents logiciels, qui sont fournis dans le manuel de l'utilisateur. <strong>Fichiers UF2<\/strong> (<a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/\">voir le guide de d\u00e9marrage de Pico<\/a>). Raspberry Pi fournit plusieurs fichiers UF2 pour vous aider \u00e0 d\u00e9marrer :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/5d8e777377e8dbe23cf36360d6efc727\/pico_micropython_20210121.uf2\">MicroPython <\/a>(qui sera au centre de cet article) et un proche cousin, CircuitPython<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/85aac7081a166b7a3d0739970c3927c9\/blink.uf2\">Faire clignoter une LED<\/a> (Clignotement de l'UF2)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/d211f824b207c328c7cae7b0ff733187\/hello_world.uf2\">Bonjour le monde<\/a> (dira \"Hello world\" si vous vous connectez via un terminal)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/d6bbb56350627ecd9cf080cbee142b28\/picoprobe.uf2\">Picoprobe <\/a>(utiliser un Pico pour d\u00e9boguer un autre Pico)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/6f6f31460c258138bd33cc96ddd76b91\/flash_nuke.uf2\">R\u00e9initialisation de la m\u00e9moire flash<\/a> (remet la m\u00e9moire Flash \u00e0 z\u00e9ro)<\/li>\n<\/ul>\n\n\n\n<p>Il y a beaucoup plus <a href=\"https:\/\/github.com\/raspberrypi\/pico-examples\">d'exemples \u00e0 trouver ici<\/a> (code C).<\/p>\n\n\n\n<p><strong>Note : <\/strong>Je mets un lien vers les fichiers UF2 les plus r\u00e9cents au 30.01.2021 - en particulier MicroPython pourrait \u00eatre mis \u00e0 jour, alors assurez-vous de v\u00e9rifier la page d'accueil de l'UF2. <a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/\">Page de d\u00e9marrage du Raspberry Pi Pico<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MicroPython<\/h3>\n\n\n\n<p>Si la perspective de programmer en C vous semble un peu intimidante, vous pouvez commencer avec MicroPython. Dans ce cas, un logiciel est pr\u00e9install\u00e9 sur le Raspberry Pi Pico (le fichier MicroPython UF2), qui ex\u00e9cutera un petit interpr\u00e9teur Python.<\/p>\n\n\n\n<p>Il est appel\u00e9 MicroPython parce qu'il ne prend pas en charge l'int\u00e9gralit\u00e9 de la biblioth\u00e8que standard Python 3. MicroPython est destin\u00e9 \u00e0 des environnements restreints, comme le Pico. Le Pico dispose d'un total de 2 Mo de RAM, ce qui ne permet pas de prendre en charge tout ce que Python 3 apporte avec lui. V\u00e9rifier <a href=\"https:\/\/github.com\/micropython\/micropython\/wiki\/Differences\">cette page Github pour les diff\u00e9rences entre CPython et MicroPython<\/a>. Voici \u00e9galement le communiqu\u00e9 officiel <a href=\"http:\/\/micropython.org\/\">Page d'accueil de MicroPython<\/a>et le <strong><a href=\"http:\/\/docs.micropython.org\/en\/latest\/index.html\">la documentation officielle de MicroPython<\/a><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CircuitPython<\/h3>\n\n\n\n<p>Note : la plupart des instructions s'appliquent \u00e9galement aux cartes CircuitPython RP2040 sous Windows, par exemple la Adafruit Feather RP2040, mais vous devrez suivre des \u00e9tapes un peu diff\u00e9rentes - je soulignerai les diff\u00e9rences dans cet article. <\/p>\n\n\n\n<p>CircuitPython est une variante de MicroPython d\u00e9velopp\u00e9e par Adafruit. <\/p>\n\n\n\n<p>La carte elle-m\u00eame sera appel\u00e9e diff\u00e9remment dans votre gestionnaire de p\u00e9riph\u00e9riques apr\u00e8s le flashage (CircuitPython CDC Control) - et vous aurez besoin d'un logiciel diff\u00e9rent bien s\u00fbr. Voici ce dont vous avez besoin pour commencer :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/circuitpython.org\/board\/adafruit_feather_rp2040\/\">Page de t\u00e9l\u00e9chargement Adafruit Feather RP2040<\/a> (Fichier CircuitPython 7.0.0 UF2)<\/li>\n<\/ul>\n\n\n\n<p>Dans cet article, nous vous montrerons \u00e9galement comment installer les biblioth\u00e8ques CircuitPython sur les appareils RP2040 sous Windows, et comment ex\u00e9cuter et arr\u00eater les programmes \u00e0 l'aide de Thonny. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Qu'obtiendrez-vous avec le MicroPython UF2 ? <\/h3>\n\n\n\n<p>Une fois MicroPython install\u00e9 sur la Pico, vous pourrez vous connecter \u00e0 la Pico \u00e0 l'aide de la console s\u00e9rie (nous montrerons comment dans cet article), et commencer \u00e0 \u00e9crire du code Python sur la Pico.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation de MicroPython sur le Pico<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Couper l'alimentation de la Pico<\/li>\n\n\n\n<li>Appuyer sur le bouton BOOTSEL et le maintenir enfonc\u00e9<\/li>\n\n\n\n<li>branchez le Pico sur votre PC \u00e0 l'aide d'un c\u00e2ble microUSB vers USB<\/li>\n\n\n\n<li>vous pouvez maintenant rel\u00e2cher le bouton BOOTSEL<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"498\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-Pico-features-1024x498.jpg\" alt=\"\" class=\"wp-image-627\" style=\"width:676px;height:328px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-Pico-features-1024x498.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-Pico-features-300x146.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-Pico-features-768x373.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-Pico-features-1536x747.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-Pico-features.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Appuyez sur le bouton BOOTSEL et maintenez-le enfonc\u00e9 avant de brancher le c\u00e2ble microUSB. <\/figcaption><\/figure>\n<\/div>\n\n\n<p>Le Pico devrait maintenant \u00eatre visible dans votre syst\u00e8me de fichiers, sous le nom de RPI-RP2 :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-1024x567.png\" alt=\"\" class=\"wp-image-628\" style=\"width:667px;height:369px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-1024x567.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-300x166.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-768x426.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image.png 1155w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Le Pico appara\u00eet sous le nom de RPI-RP2<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center\"><em>(Note en marge : je me demande ce qu'\u00e9tait le RPI-RP1).<\/em><\/p>\n\n\n\n<p>La Pico \u00e9mule un lecteur flash FAT32, qui contient deux fichiers : INDEX.HTM et INFO_UF2.TXT.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"666\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-1.png\" alt=\"\" class=\"wp-image-629\" style=\"width:630px;height:490px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-1.png 856w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-1-300x233.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-1-768x598.png 768w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><figcaption class=\"wp-element-caption\">Gestionnaire de disques Windows<\/figcaption><\/figure>\n<\/div>\n\n\n<p>En fait, Windows Drive Manager indique que Pico est une cl\u00e9 USB FAT de 128 Mo.<\/p>\n\n\n\n<p><strong>Ne faites pas l'erreur d'essayer de stocker des fichiers sur le Pico<\/strong> <strong>de cette mani\u00e8re<\/strong>ils seront abandonn\u00e9s silencieusement. M\u00eame si vous avez l'impression qu'ils sont \u00e9crits, c'est simplement Windows qui met en cache les op\u00e9rations - vos fichiers dispara\u00eetront ! Ai-je d\u00e9j\u00e0 mentionn\u00e9 que le Pico n'a en fait que 2 Mo de m\u00e9moire flash ? Il ment effront\u00e9ment sur les 128MB ici (le RP2040 est suppos\u00e9 supporter jusqu'\u00e0 16MB de flash d'ailleurs, AFAIK). <\/p>\n\n\n\n<p><em>Sidenote : Cela me rappelle un peu mon voyage en Inde, o\u00f9 j'ai achet\u00e9 des cl\u00e9s USB d'une capacit\u00e9 de 128 GB - qui \u00e9crivent vos donn\u00e9es au Nirvana. Lorsque j'ai essay\u00e9 de rendre la cl\u00e9 et de me faire rembourser, le vendeur avait disparu... les aventures \u00e0 vivre \ud83d\ude42 .<\/em><\/p>\n\n\n\n<p>Toutefois, si vous copiez le bon type de fichier - le fichier UF2 - sur ce lecteur, il sera reconnu et \u00e9crit. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"454\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-2.png\" alt=\"\" class=\"wp-image-630\" style=\"width:670px;height:305px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-2.png 998w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-2-300x136.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-2-768x349.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><figcaption class=\"wp-element-caption\">Copier le fichier Micropython UF2 sur le Pico<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Vous pouvez le glisser-d\u00e9poser depuis votre navigateur, apr\u00e8s l'avoir t\u00e9l\u00e9charg\u00e9, ou le copier-coller. Une fois la copie termin\u00e9e, la Pico red\u00e9marrera automatiquement et vous ne verrez plus de cl\u00e9 USB. <\/p>\n\n\n\n<p>Note : Si vous souhaitez utiliser CircuitPython, utilisez bien s\u00fbr le fichier CircuitPython UF2 \u00e0 la place de cette \u00e9tape. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"675\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-3.png\" alt=\"\" class=\"wp-image-631\" style=\"width:673px;height:524px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-3.png 866w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-3-300x234.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-3-768x599.png 768w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><figcaption class=\"wp-element-caption\">Apr\u00e8s le red\u00e9marrage, le Pico n'appara\u00eet plus dans le gestionnaire de lecteurs de Windows.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Le Pico fonctionne maintenant (apr\u00e8s le red\u00e9marrage) avec MicroPython, qui fournit un port s\u00e9rie (COM-port) via USB. (En termes techniques, il s'agit d'un p\u00e9riph\u00e9rique USB de classe 02 = <strong>Communications et contr\u00f4le du CDC<\/strong> et p\u00e9riph\u00e9rique USB (sous-classe 02). <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connexion \u00e0 la Pico, Windows 10<\/h2>\n\n\n\n<p>Windows 10 facilite la connexion au Pico, car le pilote de port COM n\u00e9cessaire (usbser.inf) sera automatiquement install\u00e9 et activ\u00e9 pour vous.<\/p>\n\n\n\n<p>Pour v\u00e9rifier le port COM sur lequel il se trouve, ouvrez votre gestionnaire de p\u00e9riph\u00e9riques :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"842\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/windows-10-devicemanager--1024x842.jpg\" alt=\"\" class=\"wp-image-634\" style=\"width:677px;height:556px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/windows-10-devicemanager--1024x842.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/windows-10-devicemanager--300x247.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/windows-10-devicemanager--768x632.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/windows-10-devicemanager-.jpg 1267w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Pour ouvrir le gestionnaire de p\u00e9riph\u00e9riques, tapez p\u00e9riph\u00e9rique dans le moteur de recherche Windows et cliquez sur Gestionnaire de p\u00e9riph\u00e9riques.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Ici, vous pourrez voir le nouveau p\u00e9riph\u00e9rique s\u00e9rie USB, avec le num\u00e9ro du port COM (dont vous aurez besoin dans une seconde pour vous connecter), sous Ports (COM &amp; LPT). <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"746\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-pi-pico-micropython-serialdevice-com3-1024x746.jpg\" alt=\"\" class=\"wp-image-635\" style=\"width:634px;height:461px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-pi-pico-micropython-serialdevice-com3-1024x746.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-pi-pico-micropython-serialdevice-com3-300x219.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-pi-pico-micropython-serialdevice-com3-768x560.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/raspberry-pi-pico-micropython-serialdevice-com3.jpg 1183w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Un nouveau dispositif s\u00e9riel est apparu, qui vous permet de vous connecter au Pico<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Pour v\u00e9rifier qu'il s'agit bien du Pico qui ex\u00e9cute MicroPython, vous pouvez faire ce qui suit : <\/p>\n\n\n\n<p>Cliquez sur View, puis s\u00e9lectionnez Devices by Container :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"746\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-view-1024x746.jpg\" alt=\"\" class=\"wp-image-636\" style=\"width:626px;height:455px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-view-1024x746.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-view-300x219.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-view-768x560.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-view.jpg 1198w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Le gestionnaire de p\u00e9riph\u00e9riques vous permet d'afficher les p\u00e9riph\u00e9riques dans diff\u00e9rentes vues<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Vous verrez ici une entr\u00e9e \"Board in FS mode\", avec les deux n\u0153uds \"USB Composite Device\" et \"USB Serial Device (<strong>COM3<\/strong>)\". Le COM3 est important, vous devrez l'utiliser pour PuTTY (voir ci-dessous).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-1024x767.jpg\" alt=\"\" class=\"wp-image-637\" style=\"width:627px;height:470px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-1024x767.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-300x225.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container-768x576.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/devices-by-container.jpg 1169w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Nous pouvons examiner les dispositifs plus en d\u00e9tail en cliquant dessus avec le bouton droit de la souris et en s\u00e9lectionnant l'entr\u00e9e de propri\u00e9t\u00e9s appropri\u00e9e dans le menu contextuel. Les propri\u00e9t\u00e9s de la carte en mode FS sont vides :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"680\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/board-in-fs-mode-properties-main.jpg\" alt=\"\" class=\"wp-image-638\" style=\"width:428px;height:485px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/board-in-fs-mode-properties-main.jpg 600w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/board-in-fs-mode-properties-main-265x300.jpg 265w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<p>Le dispositif composite USB affiche \"Board in FS mode\" (carte en mode FS) comme description du dispositif rapport\u00e9 par le bus :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"702\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/board-in-fs-mode.jpg\" alt=\"\" class=\"wp-image-639\" style=\"width:428px;height:496px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/board-in-fs-mode.jpg 606w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/board-in-fs-mode-259x300.jpg 259w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n<\/div>\n\n\n<p>Note : il s'agit du Pico utilisant MicroPython. Lorsque vous le re-flasherez avec un logiciel diff\u00e9rent, les r\u00e9sultats seront diff\u00e9rents !<\/p>\n\n\n\n<p>Le dispositif s\u00e9rie USB lui-m\u00eame pr\u00e9sente des propri\u00e9t\u00e9s int\u00e9ressantes :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"628\" height=\"390\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-board-cdc.jpg\" alt=\"\" class=\"wp-image-640\" style=\"width:444px;height:276px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-board-cdc.jpg 628w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-board-cdc-300x186.jpg 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><figcaption class=\"wp-element-caption\">La description de l'appareil signal\u00e9e par le bus est \"Board CDC\"<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Remarque : la description du p\u00e9riph\u00e9rique de la carte sera \"CircuitPython CDC Control\" au lieu de \"Board CDC\" si vous utilisez CircuitPython. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"692\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-port-settings.jpg\" alt=\"\" class=\"wp-image-641\" style=\"width:453px;height:506px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-port-settings.jpg 619w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-port-settings-268x300.jpg 268w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><figcaption class=\"wp-element-caption\">Les param\u00e8tres par d\u00e9faut du port sont 9600 bits par seconde, 8 bits de donn\u00e9es, pas de parit\u00e9, 1 bit d'arr\u00eat, pas de contr\u00f4le de flux - et ils fonctionnent (voir ci-dessous).<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"684\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-usb-class-subclass.jpg\" alt=\"\" class=\"wp-image-642\" style=\"width:446px;height:498px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-usb-class-subclass.jpg 612w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-usb-class-subclass-268x300.jpg 268w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><figcaption class=\"wp-element-caption\">La classe USB est 02 et la sous-classe USB est 02<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Si vous savez ce que vous cherchez, les identifiants du mat\u00e9riel (VID = identifiant du fournisseur et PID = identifiant du produit) sont utiles :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"689\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-vendorid-product-id.jpg\" alt=\"\" class=\"wp-image-643\" style=\"width:457px;height:515px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-vendorid-product-id.jpg 611w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/micropython-vendorid-product-id-266x300.jpg 266w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/figure>\n<\/div>\n\n\n<p>VID_2E8A -&gt; l'identifiant du vendeur est <strong>2E8A <\/strong>(en hexad\u00e9cimal) ou <strong>11914 <\/strong>(en d\u00e9cimal), qui est <strong>Raspberry Pi<\/strong><\/p>\n\n\n\n<p>PID_0005 -&gt; l'identifiant du produit est <strong>5<\/strong>que la carte affichera lors de l'ex\u00e9cution de MicroPython (l'identifiant du produit par d\u00e9faut est <strong>3<\/strong>)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sidenote : Journal de d\u00e9bogage du navigateur Chrome<\/h3>\n\n\n\n<p>Ces informations peuvent \u00e9galement \u00eatre obtenues \u00e0 l'aide du navigateur Chrome. <\/p>\n\n\n\n<p><a href=\"chrome:\/\/device-log\">chrome:\/\/device-log<\/a><\/p>\n\n\n\n<p>vous permettra de voir les appareils actuellement connect\u00e9s<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"90\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-4-1024x90.png\" alt=\"\" class=\"wp-image-644\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-4-1024x90.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-4-300x26.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-4-768x68.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-4-1536x135.png 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-4.png 1874w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Dans la capture d'\u00e9cran ci-dessus, vous voyez la sortie du journal de p\u00e9riph\u00e9rique de Chrome, montrant comment le Pico appara\u00eet comme \"Raspberry Pi\", \"RP2 Boot\" avant de flasher avec MicroPython, et comme \"MicroPython\", \"Board in FS mode\". Remarquez les diff\u00e9rents identifiants de produit !<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Retour \u00e0 Windows 10 : <\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"685\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/usbser.inf-installed-windows10.jpg\" alt=\"\" class=\"wp-image-647\" style=\"width:426px;height:481px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/usbser.inf-installed-windows10.jpg 607w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/usbser.inf-installed-windows10-266x300.jpg 266w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/figure>\n<\/div>\n\n\n<p>Comme vous le voyez dans la capture d'\u00e9cran ci-dessus, Windows 10 a automatiquement install\u00e9 usbser (USB Serial Driver) pour vous - vous pouvez donc commencer \u00e0 utiliser la Pico imm\u00e9diatement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PuTTY<\/h2>\n\n\n\n<p>PuTTY est un client telnet \/ SSH. Vous l'utiliserez pour vous connecter \u00e0 la Pico, et dialoguer avec le REPL de MicroPython. <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\">T\u00e9l\u00e9chargez PuTTY ici<\/a>. (Vous pouvez utiliser le programme d'installation Windows MSI 64 bits pour la plupart des installations de Windows 10).<\/p>\n\n\n\n<p>Ouvrez PuTTY. Entrez les bons param\u00e8tres :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"668\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-setup.jpg\" alt=\"\" class=\"wp-image-650\" style=\"width:476px;height:468px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-setup.jpg 680w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-setup-300x295.jpg 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Le type de connexion doit \u00eatre r\u00e9gl\u00e9 sur <strong>En s\u00e9rie<\/strong><\/li>\n\n\n\n<li>La ligne s\u00e9rie doit \u00eatre r\u00e9gl\u00e9e sur ce que votre enqu\u00eate a permis de d\u00e9couvrir. Dans mon cas, il s'agit de <strong>COM3<\/strong>. Dans votre cas, il s'agira probablement de quelque chose de diff\u00e9rent !<\/li>\n\n\n\n<li>La vitesse peut \u00eatre laiss\u00e9e \u00e0 9600 pour l'instant<\/li>\n<\/ul>\n\n\n\n<p>Cliquez sur Ouvrir, et un terminal s'ouvrira :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"988\" height=\"580\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-hello-world.jpg\" alt=\"\" class=\"wp-image-651\" style=\"width:656px;height:385px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-hello-world.jpg 988w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-hello-world-300x176.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/putty-hello-world-768x451.jpg 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/figure>\n<\/div>\n\n\n<p>Pour obtenir l'invite initiale, appuyez une fois sur la touche Entr\u00e9e<\/p>\n\n\n\n<p>Vous pouvez alors commencer \u00e0 \u00e9crire du code Python apr\u00e8s l'invite, qui sera interpr\u00e9t\u00e9 imm\u00e9diatement. Essayez de saisir le classique \"Hello world\" :<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"print(&quot;Hello world!&quot;)\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copie\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code data-no-translation=\"\"><span class=\"line\"><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Hello world!<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>MicroPython r\u00e9pondra par<\/p>\n\n\n\n<p><em>Bonjour \u00e0 tous !<\/em><\/p>\n\n\n\n<p>comme pr\u00e9vu \ud83d\ude42 .<\/p>\n\n\n\n<p>Maintenant que le premier contact est \u00e9tabli, je vous souhaite un bon codage ! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Thonny : un IDE Python, fonctionne avec Pico !<\/h2>\n\n\n\n<p>L'utilisation de PuTTY n'est pas tr\u00e8s confortable pour des sessions plus longues, ou lorsque vous voulez charger beaucoup de code dans votre Pico. Heureusement, l'application open source Thonny (qui est install\u00e9e par d\u00e9faut sur le Raspberry Pi OS) est \u00e9galement disponible pour Windows et int\u00e8gre le support Pico (MicroPython et CircuitPython).<\/p>\n\n\n\n<p><strong>Premi\u00e8re \u00e9tape<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/thonny.org\/\">T\u00e9l\u00e9charger Thonny ici<\/a>et l'installer<\/p>\n\n\n\n<p><strong>Deuxi\u00e8me \u00e9tape<\/strong><\/p>\n\n\n\n<p>Connectez votre Pico, comme d\u00e9crit ci-dessus - il devrait maintenant avoir un num\u00e9ro de COM - si vous le souhaitez, vous pouvez tester en utilisant la m\u00e9thode PuTTY d\u00e9crite ci-dessus, si vous pouvez atteindre votre Pico.<\/p>\n\n\n\n<p><strong>Troisi\u00e8me \u00e9tape<\/strong><\/p>\n\n\n\n<p>D\u00e9marrez Thonny, et cliquez sur le bouton <strong>Outils<\/strong> choisissez le menu <strong>Options<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"724\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image.png\" alt=\"\" class=\"wp-image-684\" style=\"width:604px;height:534px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image.png 819w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-300x265.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-768x679.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><figcaption class=\"wp-element-caption\">L'\u00e9cran de d\u00e9marrage par d\u00e9faut de Windows, le menu Outils, s\u00e9lectionnez Options ici.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Quatri\u00e8me \u00e9tape<\/strong>Pico : d\u00e9finir Pico comme interpr\u00e8te<\/p>\n\n\n\n<p>Cliquez sur l'onglet Interpr\u00e8te. Cet \u00e9cran s'affiche par d\u00e9faut :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"607\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-1.png\" alt=\"\" class=\"wp-image-685\" style=\"width:616px;height:529px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-1.png 707w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-1-300x258.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><figcaption class=\"wp-element-caption\">L'interpr\u00e9teur par d\u00e9faut est le m\u00eame que celui qui ex\u00e9cute Thonny (par d\u00e9faut).<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Cliquez et s\u00e9lectionnez MicroPython (Raspberry Pi Pico)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"300\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-2.png\" alt=\"\" class=\"wp-image-686\" style=\"width:604px;height:278px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-2.png 652w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-2-300x138.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><figcaption class=\"wp-element-caption\">La prise en charge de MicroPython (Raspberry Pi Pico) est int\u00e9gr\u00e9e \u00e0 Thonny.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Note<\/strong>: si vous utilisez <strong>CircuitPython<\/strong>vous devez plut\u00f4t s\u00e9lectionner \"<strong>CircuitPython (g\u00e9n\u00e9rique)<\/strong>\"dans ce menu d\u00e9roulant.<\/p>\n\n\n\n<p>Vous pouvez laisser le port \u00e0 \"essayer de d\u00e9tecter le port automatiquement\", ou d\u00e9finir un port sp\u00e9cifique (nous avons vu plus haut comment le num\u00e9ro de port correct peut \u00eatre d\u00e9termin\u00e9).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"606\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-3.png\" alt=\"\" class=\"wp-image-687\" style=\"width:568px;height:486px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-3.png 708w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-3-300x257.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><figcaption class=\"wp-element-caption\">Essayer de d\u00e9tecter le port automatiquement<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Remarque : le port doit toujours appara\u00eetre dans le menu d\u00e9roulant, mais il peut \u00eatre utile de v\u00e9rifier qu'il est bien pr\u00e9sent :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"121\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-4.png\" alt=\"\" class=\"wp-image-688\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-4.png 627w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-4-300x58.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><figcaption class=\"wp-element-caption\">sur mon ordinateur, la carte CDC (Pico avec MicroPython) est sur le port COM5<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Je laisse \"essayer de d\u00e9tecter le port automatiquement\". <strong>Cliquez sur OK pour enregistrer le param\u00e8tre.<\/strong><\/p>\n\n\n\n<p>Votre \u00e9cran devrait maintenant s'afficher comme suit :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"722\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-5.png\" alt=\"\" class=\"wp-image-689\" style=\"width:575px;height:508px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-5.png 818w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-5-300x265.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-5-768x678.png 768w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><figcaption class=\"wp-element-caption\">Notez l'invite MicroPython, avec Raspberry Pi Pico avec RP2040<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Cinqui\u00e8me \u00e9tape : test<\/strong><\/p>\n\n\n\n<p>Vous pouvez maintenant tester la communication avec le Pico.<\/p>\n\n\n\n<p>Type<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"print(&quot;Hello world&quot;)\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copie\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code data-no-translation=\"\"><span class=\"line\"><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Hello world<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>dans l'invite de MicroPython, et appuyez sur entr\u00e9e<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"263\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-6.png\" alt=\"\" class=\"wp-image-690\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-6.png 794w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-6-300x99.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-6-768x254.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><figcaption class=\"wp-element-caption\">Bonjour au monde, \u00e0 la mani\u00e8re de picockpit.com \ud83d\ude42 .<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Vous verrez que le Pico vous r\u00e9pond.<\/p>\n\n\n\n<p>F\u00e9licitations, vous avez r\u00e9ussi \u00e0 connecter Thonny avec le Pico sous Windows !<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Scripts plus complexes : Faire clignoter une LED avec Thonny<\/h3>\n\n\n\n<p>La boucle REPL (read evaluate print loop) que vous venez de voir est agr\u00e9able, mais pour des projets plus complexes, nous aimerions d'abord entrer dans le source, ou le charger \u00e0 partir d'un fichier.<\/p>\n\n\n\n<p>C'est \u00e0 cela que peut servir la partie sup\u00e9rieure de la fen\u00eatre Thonny. <\/p>\n\n\n\n<p>Entrez votre code. Dans mon exemple, nous ferons clignoter la LED embarqu\u00e9e (qui est l'\u00e9quivalent mat\u00e9riel de hello world !), et nous bouclerons ind\u00e9finiment.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"import timefrom machine import Pinprint(&quot;Welcome to Pico example 2, blinking an LED&quot;)led = Pin(25, Pin.OUT)# For demo purposes, we have an infinite loop herewhile True:    led.high()    time.sleep(0.5)    led.low()    time.sleep(0.5)\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copie\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code data-no-translation=\"\"><span class=\"line\"><span style=\"color: #81A1C1\">import<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">time<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">machine<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">import<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">print<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Welcome to Pico example 2, blinking an LED<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">led<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(25<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">OUT<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"># <\/span><span style=\"color: #8FBCBB\">For<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">demo<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">purposes<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">we<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">have<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">an<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">infinite<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">loop<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">here<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">while<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">True<\/span><span style=\"color: #D8DEE9FF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #8FBCBB\">led<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">high<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #8FBCBB\">time<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">sleep<\/span><span style=\"color: #D8DEE9FF\">(0.5)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #8FBCBB\">led<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">low<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #8FBCBB\">time<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">sleep<\/span><span style=\"color: #D8DEE9FF\">(0.5)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Veillez \u00e0 une indentation correcte en Python (les espaces blancs sont utilis\u00e9s \u00e0 des fins de contr\u00f4le en Python !)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"731\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-7.png\" alt=\"\" class=\"wp-image-693\" style=\"width:586px;height:523px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-7.png 819w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-7-300x268.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-7-768x685.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><figcaption class=\"wp-element-caption\">Le code pour faire clignoter la LED embarqu\u00e9e<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Cliquez maintenant sur le bouton \"Ex\u00e9cuter\".<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"34\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-8.png\" alt=\"\" class=\"wp-image-694\" style=\"width:24px;height:34px\"\/><\/figure>\n<\/div>\n\n\n<p>Thonny vous demandera o\u00f9 sauvegarder.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"248\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-9.png\" alt=\"\" class=\"wp-image-695\"\/><figcaption class=\"wp-element-caption\">Enregistrer sur cet ordinateur ou sur le Raspberry Pi Pico ?<\/figcaption><\/figure>\n<\/div>\n\n\n<p>S\u00e9lectionnez Raspberry Pi Pico :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"496\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-10.png\" alt=\"\" class=\"wp-image-696\" style=\"width:585px;height:394px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-10.png 736w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-10-300x202.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/figure>\n<\/div>\n\n\n<p>J'ai choisi de nommer le fichier hello.py - Cliquez sur OK pour le sauvegarder<\/p>\n\n\n\n<p>Une fois que vous aurez appuy\u00e9 sur le bouton OK, votre code commencera \u00e0 s'ex\u00e9cuter. La LED int\u00e9gr\u00e9e du Pico devrait commencer \u00e0 clignoter et vous verrez la sortie dans le Shell :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"732\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-11.png\" alt=\"\" class=\"wp-image-697\" style=\"width:629px;height:562px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-11.png 819w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-11-300x268.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-11-768x686.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><figcaption class=\"wp-element-caption\">%Run -c $EDITOR_CONTENT<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Note : Je n'ai pas eu \u00e0 entrer la commande %Run -c $EDITOR_CONTENT, Thonny l'a fait lui-m\u00eame. La sortie ci-dessous provient de notre code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CircuitPython sur Thonny sous Windows<\/h3>\n\n\n\n<p>Suivez les m\u00eames \u00e9tapes, mais s\u00e9lectionnez CircuitPython (g\u00e9n\u00e9rique) comme interpr\u00e8te.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"606\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-5.png\" alt=\"\" class=\"wp-image-1146\" style=\"width:594px;height:508px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-5.png 708w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-5-300x257.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n<\/div>\n\n\n<p>La coque Thonny vous donnera une confirmation diff\u00e9rente :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"483\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-6.png\" alt=\"\" class=\"wp-image-1147\" style=\"width:640px;height:306px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-6.png 1009w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-6-300x144.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-6-768x368.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><figcaption class=\"wp-element-caption\">Il s'agit de : Adafruit CircuitPython 7.0.0 le 2021-09-20 ; Adafruit Feather RP2040 avec rp2040<br>Adafruit CircuitPython 7.0.0 le 2021-09-20 ; Adafruit Feather RP2040 avec rp2040<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Windows 8.1<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"232\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-5.png\" alt=\"\" class=\"wp-image-654\" style=\"width:764px;height:222px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-5.png 798w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-5-300x87.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-5-768x223.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><figcaption class=\"wp-element-caption\">Le Raspberry Pi Pico est \"Board CDC\" et affiche un \u00e9tat d'erreur.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Windows 8.1 ne charge PAS automatiquement le pilote s\u00e9rie et affiche le p\u00e9riph\u00e9rique dans un \u00e9tat d'erreur.  <\/p>\n\n\n\n<p>Note : avec CircuitPython, le nom du dispositif sera \"CircuitPython CDC control\". M\u00eame proc\u00e9dure. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"116\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-1.png\" alt=\"\" class=\"wp-image-1134\"\/><figcaption class=\"wp-element-caption\">Contr\u00f4le CDC CircuitPython sous Windows 8.1<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Voici \u00e0 quoi ressemblent les propri\u00e9t\u00e9s de la carte CDC (le Pico qui ex\u00e9cute MicroPython) :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"565\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-6.png\" alt=\"\" class=\"wp-image-655\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-6.png 547w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-6-290x300.png 290w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"548\" height=\"567\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-7.png\" alt=\"\" class=\"wp-image-656\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-7.png 548w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-7-290x300.png 290w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/figure>\n<\/div>\n\n\n<p>Il indique que les pilotes de ce p\u00e9riph\u00e9rique n'ont pas \u00e9t\u00e9 install\u00e9s (code 28). <\/p>\n\n\n\n<p>Une solution pour r\u00e9soudre ce probl\u00e8me est le <a href=\"https:\/\/zadig.akeo.ie\/\">Outil Zadig<\/a>que vous pouvez t\u00e9l\u00e9charger gratuitement :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/zadig.akeo.ie\/downloads\/\"><strong>T\u00e9l\u00e9charger Zadig-2.5.exe ici<\/strong><\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Attention : <\/strong>Un certain nombre d'antivirus semblent s'accorder sur le fait que l'installer_x64.exe contenu dans Zadig 2.7 contient \"Trojan.Tedy\".  Il s'agit peut-\u00eatre d'une fausse alerte, cependant : je recommande d'utiliser <strong>Zadig-2.5.exe<\/strong> \u00e0 la place, ce qui ne m'a pas donn\u00e9 ces avertissements (je viens de v\u00e9rifier une deuxi\u00e8me fois). Mieux vaut pr\u00e9venir que gu\u00e9rir !<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"271\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-19.png\" alt=\"\" class=\"wp-image-671\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-19.png 560w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-19-300x145.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Zadig <\/strong>vous aide \u00e0 installer des pilotes USB g\u00e9n\u00e9riques pour vous permettre d'acc\u00e9der aux p\u00e9riph\u00e9riques USB. <\/p>\n\n\n\n<p>Dans notre cas, nous voulons le pilote USB Serial (CDC).<\/p>\n\n\n\n<p>S\u00e9lectionnez Board CDC (Interface 0) dans le menu d\u00e9roulant ci-dessus, et USB Serial (CDC) dans l'autre champ. Cliquez sur Installer le pilote. <\/p>\n\n\n\n<p>Apr\u00e8s l'installation, vous verrez que le pilote est maintenant r\u00e9gl\u00e9 sur usbser (v1.0.0.0) :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"316\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-20.png\" alt=\"\" class=\"wp-image-673\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-20.png 689w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-20-300x138.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/figure>\n<\/div>\n\n\n<p>Et vous pourrez vous connecter, comme je l'ai d\u00e9crit dans Windows 10, en utilisant le bon num\u00e9ro de port COM :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"189\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-22.png\" alt=\"\" class=\"wp-image-675\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-22.png 796w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-22-300x71.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-22-768x182.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><figcaption class=\"wp-element-caption\">Le gestionnaire de p\u00e9riph\u00e9riques affiche la carte CDC avec le pilote<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"537\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-21.png\" alt=\"\" class=\"wp-image-674\" style=\"width:783px;height:497px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-21.png 846w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-21-300x190.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-21-768x487.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><figcaption class=\"wp-element-caption\">Hello world pour MicroPython sur Pico avec Windows 8.1<\/figcaption><\/figure>\n<\/div>\n\n\n<p>note en marge :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"565\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-23.png\" alt=\"\" class=\"wp-image-676\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-23.png 560w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-23-297x300.png 297w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/image-23-150x150.png 150w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><figcaption class=\"wp-element-caption\">Voici la bo\u00eete de dialogue, qui indique que libwdi est le fabricant du pilote<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Port Pico\/S\u00e9rie sur Windows 7<\/h2>\n\n\n\n<p>Selon un client, <a href=\"https:\/\/zadig.akeo.ie\/\">Zadig <\/a>a permis d'installer le pilote du port s\u00e9rie sur Windows 7 \u00e9galement, et le Pico \u00e9tait utilisable par la suite ! Veillez \u00e0 utiliser <a href=\"https:\/\/zadig.akeo.ie\/downloads\/\">Zadig 2.5<\/a>La nouvelle version de Zadig 2.7 a \u00e9t\u00e9 signal\u00e9e par mon scanner de virus lors de l'installation du pilote. (Je ne sais pas trop pourquoi, mais mieux vaut pr\u00e9venir que gu\u00e9rir - l'ancien fonctionne).  <\/p>\n\n\n\n<p>Si vous avez besoin d'un guide \u00e9tape par \u00e9tape, consultez le guide pour Windows 8.1 ci-dessus - il devrait \u00eatre assez similaire sur une machine Windows 8.1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation des biblioth\u00e8ques et programmation d'une carte CircuitPython RP2040 sous Windows<\/h2>\n\n\n\n<p>Si vous utilisez par exemple un Adafruit Feather RP2040, vous pouvez utiliser CircuitPython. Adafruit dispose d'un <a href=\"https:\/\/learn.adafruit.com\/adafruit-feather-rp2040-pico\/built-in-neopixel-led\">NeoPixel RGB<\/a> sur celui-ci, ce qui n\u00e9cessite l'installation de biblioth\u00e8ques dans le r\u00e9pertoire <strong>lib <\/strong>sur l'appareil. <\/p>\n\n\n\n<p>(note : <a href=\"https:\/\/learn.adafruit.com\/adafruit-feather-rp2040-pico\/built-in-neopixel-led\">t\u00e9l\u00e9charger les biblioth\u00e8ques ici<\/a> - cliquez sur le lien \"T\u00e9l\u00e9charger l'ensemble de projets\"). <\/p>\n\n\n\n<p>Lorsque vous extrayez le dossier de l'ensemble du projet, vous verrez deux sous-dossiers diff\u00e9rents contenant CircuitPython 6.x et CircuitPython 7.x. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"241\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-7.png\" alt=\"\" class=\"wp-image-1152\" style=\"width:692px;height:224px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-7.png 745w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-7-300x97.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure>\n<\/div>\n\n\n<p>J'utilise ici la version CircuitPython 7.x, car j'ai flash\u00e9 le fichier <a href=\"https:\/\/circuitpython.org\/board\/adafruit_feather_rp2040\/\">7.0.0 Version de CircuitPython<\/a>. <\/p>\n\n\n\n<p>Vous remarquerez un lecteur appel\u00e9 \"CIRCUITPY\" dans votre explorateur :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-8-1024x375.png\" alt=\"\" class=\"wp-image-1153\" style=\"width:769px;height:281px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-8-1024x375.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-8-300x110.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-8-768x281.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-8.png 1130w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Lecteur CIRCUITPY et son contenu initial (lib, boot_out.txt, code.py)<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Le site <strong>lib <\/strong>est vide lors d'une nouvelle installation de CircuitPython. En utilisant l'explorateur Windows, nous pouvons simplement copier et coller les fichiers dans ce dossier. <\/p>\n\n\n\n<p> Copier les biblioth\u00e8ques n\u00e9cessaires du dossier lib t\u00e9l\u00e9charg\u00e9 dans le dossier lib de CIRCUITPY :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"223\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-9.png\" alt=\"\" class=\"wp-image-1154\" style=\"width:771px;height:179px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-9.png 957w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-9-300x70.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-9-768x179.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><figcaption class=\"wp-element-caption\">copier les biblioth\u00e8ques n\u00e9cessaires dans le dossier lib<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Maintenant, nous pouvons \u00e9galement \u00e9craser code.py :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"407\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-10.png\" alt=\"\" class=\"wp-image-1155\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-10.png 577w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-10-300x212.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><figcaption class=\"wp-element-caption\">remplacer code.py<\/figcaption><\/figure>\n<\/div>\n\n\n<p>En utilisant Thonny, nous pouvons \u00e9diter et ex\u00e9cuter le fichier code.py. Cliquez sur l'ic\u00f4ne d'ouverture dans Thonny, et s\u00e9lectionnez \"CircuitPython device\" dans la bo\u00eete de dialogue \"Where to open from\" :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"250\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-11.png\" alt=\"\" class=\"wp-image-1156\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-11.png 334w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-11-300x225.png 300w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><figcaption class=\"wp-element-caption\">S\u00e9lectionnez ici le dispositif CircuitPython<\/figcaption><\/figure>\n<\/div>\n\n\n<p> Et ici, vous pouvez ouvrir code.py :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"495\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-12.png\" alt=\"\" class=\"wp-image-1157\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-12.png 739w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-12-300x201.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><figcaption class=\"wp-element-caption\">Cliquez sur code.py et OK<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Votre fen\u00eatre Thonny devrait maintenant ressembler \u00e0 ceci :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-13-1024x373.png\" alt=\"\" class=\"wp-image-1158\" style=\"width:760px;height:276px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-13-1024x373.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-13-300x109.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-13-768x280.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-13-1536x560.png 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-13.png 1915w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">code.py en haut, le Shell en bas<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Appuyez sur la touche F5 de votre clavier ou cliquez sur l'ic\u00f4ne d'ex\u00e9cution. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"29\" height=\"30\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-14.png\" alt=\"\" class=\"wp-image-1159\" style=\"width:29px;height:30px\"\/><figcaption class=\"wp-element-caption\">l'ic\u00f4ne d'ex\u00e9cution<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Si tout s'est bien pass\u00e9, la LED NeoPixel RGB de votre Adafruit Feather RP2040 devrait maintenant commencer \u00e0 clignoter en diff\u00e9rentes couleurs. Toutes nos f\u00e9licitations \ud83d\ude42 .<\/p>\n\n\n\n<p>Vous pouvez maintenant jouer avec le script - peut-\u00eatre pourriez-vous modifier les couleurs, ou le temps entre les changements de couleur ? Ou ajouter d'autres fonctions. <\/p>\n\n\n\n<p>Afin de pouvoir ex\u00e9cuter votre script modifi\u00e9, appuyez sur Ctrl + C dans le Shell (ou s\u00e9lectionnez Run &gt; Interrupt Execution dans le menu Thonny). Vous pouvez maintenant t\u00e9l\u00e9charger \u00e0 nouveau votre script. <\/p>\n\n\n\n<p>Une bonne chose pour le d\u00e9bogage est que vous obtiendrez une sortie console avec Thonny, vous pouvez donc utiliser les instructions print pour sortir des informations :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"336\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-15.png\" alt=\"\" class=\"wp-image-1160\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-15.png 511w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-15-300x197.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><figcaption class=\"wp-element-caption\">Thonny affiche des instructions d'impression depuis l'Adafruit Feather RP2040<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Adafruit CircuitPython Bundle <\/h3>\n\n\n\n<p>Adafruit propose un t\u00e9l\u00e9chargement pratique de plusieurs biblioth\u00e8ques dans un ZIP. T\u00e9l\u00e9chargez le fichier adafruit-circuitpython-bundle-7.x.-mpy ou -6.x. mpy correspondant. <a href=\"https:\/\/github.com\/adafruit\/Adafruit_CircuitPython_Bundle\/releases\">ici<\/a>. Vous pouvez installer plusieurs ou toutes les biblioth\u00e8ques comme indiqu\u00e9 ci-dessus en utilisant simplement l'explorateur Windows.  Un t\u00e9l\u00e9chargement complet de toutes les librairies ferait environ 1.2 MB, l'Adafruit Feather RP2040 a assez d'espace pour le permettre. La copie peut prendre quelques minutes.  <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"374\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-16.png\" alt=\"\" class=\"wp-image-1165\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-16.png 579w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-16-300x194.png 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Notes diverses<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Puis-je utiliser les proc\u00e9dures de ce guide pour CircuitPython \u00e9galement ? <\/h3>\n\n\n\n<p>Absolument, oui. Par exemple, vous pouvez utiliser Zadig sur Windows 8.1 (voir la description ci-dessus pour plus de d\u00e9tails. Utilisez la version 2.5.730 de Zadig !) Vous chercherez un p\u00e9riph\u00e9rique \"CircuitPython CDC control\" au lieu du p\u00e9riph\u00e9rique \"Board CDC\".<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"317\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-2.png\" alt=\"\" class=\"wp-image-1136\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-2.png 688w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-2-300x138.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><figcaption class=\"wp-element-caption\">Zadig pour le dispositif de contr\u00f4le CircuitPython CDC<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">L'installation du pilote \u00e9choue avec Zadig ? <\/h3>\n\n\n\n<p>Cela peut \u00eatre d\u00fb \u00e0 un logiciel antivirus. Il s'agit peut-\u00eatre d'une fausse alerte, mais je ne peux pas en \u00eatre s\u00fbr. Mon antivirus (Bitdefender) m'indique ce qui suit : <\/p>\n\n\n\n<p>\"Die Datei C:\\Users\\Max\\usb_driver\\installer_x64.exe ist mit Gen:Variant.Tedy.11444 infiziert und wurde in die Quarant\u00e4ne verschoben. Nous vous conseillons d'effectuer une analyse du syst\u00e8me afin de d\u00e9tecter d'autres probl\u00e8mes.\" <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"488\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-3-1024x488.png\" alt=\"\" class=\"wp-image-1140\" style=\"width:764px;height:364px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-3-1024x488.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-3-300x143.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-3-768x366.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-3-1536x732.png 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/11\/image-3.png 1629w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Un certain nombre d'antivirus semblent s'accorder sur le fait que l'installer_x64.exe (qui fait partie du pilote USB) contient \"Trojan.Tedy\". Je recommande d'essayer d'utiliser Zadig-2.5.exe \u00e0 la place. <a href=\"https:\/\/zadig.akeo.ie\/downloads\/\">Que vous pouvez t\u00e9l\u00e9charger ici<\/a>. J'ai utilis\u00e9 Zadig-2.5 pour installer un pilote s\u00e9rie USB CircuitPython sur mon installation Windows 8.1 (qui est ma machine principale). <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Comment arr\u00eater l'ex\u00e9cution du code sur le Pico dans Thonny ?<\/h3>\n\n\n\n<p>Cliquez dans le Shell et appuyez sur Ctrl+C. Cela devrait arr\u00eater l'ex\u00e9cution du code actuel :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"732\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-12.png\" alt=\"\" class=\"wp-image-698\" style=\"width:658px;height:587px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-12.png 821w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-12-300x267.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-12-768x685.png 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><figcaption class=\"wp-element-caption\">KeyboardInterrupt a arr\u00eat\u00e9 le code<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">R\u00e9p\u00e9tition des d\u00e9clarations pr\u00e9c\u00e9dentes \u00e0 Thonny<\/h3>\n\n\n\n<p>Il est pratique d'ex\u00e9cuter \u00e0 nouveau la m\u00eame commande : appuyez sur la touche \"up\" du clavier \u00e0 l'invite de l'interpr\u00e9teur de commandes pour consulter l'historique des commandes pr\u00e9c\u00e9dentes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Comment savoir si mon Pi Pico est d\u00e9connect\u00e9 de Thonny ?<\/h3>\n\n\n\n<p>Vous obtiendrez un message d'erreur en essayant d'ex\u00e9cuter le code, quelque chose comme ceci :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"588\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-13-1024x588.png\" alt=\"\" class=\"wp-image-699\" style=\"width:699px;height:401px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-13-1024x588.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-13-300x172.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-13-768x441.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-13.png 1157w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Erreur lors de l'interrogation des variables globales, serial.serialutil.SerialTimeoutException : D\u00e9lai d'\u00e9criture<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Cela signifie que Thonny ne peut pas \u00e9crire sur le port s\u00e9rie sur lequel la Pico est cens\u00e9e se trouver.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"729\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-14.png\" alt=\"\" class=\"wp-image-700\" style=\"width:694px;height:618px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-14.png 819w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-14-300x267.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/02\/image-14-768x684.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">L'erreur \"Couldn't find the device automatically\" (Impossible de trouver l'appareil automatiquement) dans Thonny<\/h3>\n\n\n\n<p>Si vous obtenez l'erreur suivante :<\/p>\n\n\n\n<p><em>Impossible de trouver l'appareil automatiquement.<br>V\u00e9rifiez la connexion (en vous assurant que l'appareil n'est pas en mode bootloader) ou choisissez<br>\"Configurer l'interpr\u00e8te\" dans le menu de l'interpr\u00e8te (en bas \u00e0 droite de la fen\u00eatre)<br>pour s\u00e9lectionner un port sp\u00e9cifique ou un autre interpr\u00e8te.<\/em><\/p>\n\n\n\n<p>V\u00e9rifiez que vous avez s\u00e9lectionn\u00e9 le bon interpr\u00e8te. Si votre appareil utilise CircuitPython au lieu de MicroPython, vous devez s\u00e9lectionner <strong>CircuitPython (g\u00e9n\u00e9rique)<\/strong> en tant qu'interpr\u00e8te dans Thonny. Voir les informations pertinentes dans cet article pour les instructions.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vos conseils pour Pico\/MicroPython sous Windows ?<\/h2>\n\n\n\n<p>Faites-nous savoir dans les commentaires si vous avez d'autres astuces pour d\u00e9marrer avec le Pico et MicroPython sur Windows, nous mettrons l'article \u00e0 jour en cons\u00e9quence \ud83d\ude42 .<\/p>\n\n\n\n<p>Profitez de votre Pico et amusez-vous avec les projets \u00e9tonnants que vous pouvez r\u00e9aliser avec elle !<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plus d'articles du blog Pico sur PiCockpit<\/h2>\n\n\n\n<p>Si vous avez appr\u00e9ci\u00e9 la lecture de cet article, vous aimerez peut-\u00eatre lire les suivants :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-video-output\/\">Sortie vid\u00e9o avec le Raspberry Pi Pico (VGA &amp; DVI)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/picockpit.com\/raspberry-pi\/circuitpython-adafruit-feather-rp2040-and-i2c\/\">CircuitPython, Adafruit Feather RP2040 et I2C<\/a><\/li>\n<\/ul>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Ffr%2Fraspberry-pi-pico-et-micropython-on-windows%2F&text=Raspberry%20Pi%20Pico%20and%20MicroPython%20on%20Windows\" title=\"Envoyer par X\" aria-label=\"Envoyer par X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">partager<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Ffr%2Fraspberry-pi-pico-et-micropython-on-windows%2F\" title=\"Envoyer par Facebook\" aria-label=\"Envoyer par Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">partager<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Ffr%2Fraspberry-pi-pico-et-micropython-on-windows%2F&text=Raspberry%20Pi%20Pico%20and%20MicroPython%20on%20Windows\" title=\"Envoyer par Telegram\" aria-label=\"Envoyer par Telegram\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">partager<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Ffr%2Fraspberry-pi-pico-et-micropython-on-windows%2F\" title=\"Envoyer par Reddit\" aria-label=\"Envoyer par Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">partager<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Cet article r\u00e9pond \u00e0 la question : Comment utiliser le Raspberry Pi Pico avec MicroPython sous Windows ? Nous montrons \u00e9galement comment installer le bon pilote pour la \"carte CDC\" (que le Pico appara\u00eetra comme une fois MicroPython install\u00e9) sur Windows 8.1. (Nous discuterons \u00e9galement des diff\u00e9rences entre MicroPython et CircuitPython, le cas \u00e9ch\u00e9ant...)<\/p>","protected":false},"author":2,"featured_media":6201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1193,10,3],"tags":[517,477,16,996,606,597,14,11,221,486,782,476,187,456,993,15,762,749,13,992,995,12,994],"class_list":["post-623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-raspberry-pi-pico","category-raspberry-pi-how-to","tag-adafruit","tag-circuitpython","tag-connect","tag-cpython","tag-linux","tag-microcontroller","tag-micropython","tag-pico","tag-pico-w","tag-project","tag-putty","tag-python","tag-raspberry-pi","tag-raspberry-pi-projects","tag-repl","tag-serial-port","tag-thonny","tag-usb","tag-windows-10","tag-windows-11","tag-windows-7","tag-windows-8-1","tag-zadig"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry Pi Pico and MicroPython on Windows | PiCockpit<\/title>\n<meta name=\"description\" content=\"A complete guide on MicroPython on a Pi with Windows (7\/8\/10), including instructions on installing and accessing the Pico serial port.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/fr\/raspberry-pi-pico-et-micropython-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi Pico and MicroPython on Windows | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"A complete guide on MicroPython on a Pi with Windows (7\/8\/10), including instructions on installing and accessing the Pico serial port.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/fr\/raspberry-pi-pico-et-micropython-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-30T15:11:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-25T20:40:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"raspi berry\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"raspi berry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"28 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/\"},\"author\":{\"name\":\"raspi berry\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\"},\"headline\":\"Raspberry Pi Pico and MicroPython on Windows\",\"datePublished\":\"2021-01-30T15:11:05+00:00\",\"dateModified\":\"2023-11-25T20:40:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/\"},\"wordCount\":3569,\"commentCount\":10,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png\",\"keywords\":[\"Adafruit\",\"circuitpython\",\"connect\",\"cpython\",\"linux\",\"microcontroller\",\"microPython\",\"Pico\",\"Pico W\",\"project\",\"PuTTY\",\"python\",\"Raspberry Pi\",\"Raspberry Pi projects\",\"repl\",\"serial port\",\"thonny\",\"usb\",\"Windows 10\",\"Windows 11\",\"Windows 7\",\"Windows 8.1\",\"zadig\"],\"articleSection\":[\"Python\",\"Raspberry Pi Pico\",\"Tutorials\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/\",\"name\":\"Raspberry Pi Pico and MicroPython on Windows | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png\",\"datePublished\":\"2021-01-30T15:11:05+00:00\",\"dateModified\":\"2023-11-25T20:40:52+00:00\",\"description\":\"A complete guide on MicroPython on a Pi with Windows (7\\\/8\\\/10), including instructions on installing and accessing the Pico serial port.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png\",\"width\":1200,\"height\":675,\"caption\":\"Raspberry Pi Pico and MicroPython on Windows Title Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/raspberry-pi-how-to\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Raspberry Pi Pico and MicroPython on Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\",\"name\":\"raspi berry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"caption\":\"raspi berry\"},\"description\":\"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)\",\"sameAs\":[\"https:\\\/\\\/picockpit.com\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/fr\\\/author\\\/raspi-berry\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi Pico et MicroPython sur Windows | PiCockpit","description":"Un guide complet sur MicroPython sur un Pi avec Windows (7\/8\/10), y compris des instructions sur l'installation et l'acc\u00e8s au port s\u00e9rie Pico.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/picockpit.com\/raspberry-pi\/fr\/raspberry-pi-pico-et-micropython-on-windows\/","og_locale":"fr_FR","og_type":"article","og_title":"Raspberry Pi Pico and MicroPython on Windows | PiCockpit","og_description":"A complete guide on MicroPython on a Pi with Windows (7\/8\/10), including instructions on installing and accessing the Pico serial port.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/fr\/raspberry-pi-pico-et-micropython-on-windows\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2021-01-30T15:11:05+00:00","article_modified_time":"2023-11-25T20:40:52+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png","type":"image\/png"}],"author":"raspi berry","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"\u00c9crit par":"raspi berry","Dur\u00e9e de lecture estim\u00e9e":"28 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/"},"author":{"name":"raspi berry","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee"},"headline":"Raspberry Pi Pico and MicroPython on Windows","datePublished":"2021-01-30T15:11:05+00:00","dateModified":"2023-11-25T20:40:52+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/"},"wordCount":3569,"commentCount":10,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png","keywords":["Adafruit","circuitpython","connect","cpython","linux","microcontroller","microPython","Pico","Pico W","project","PuTTY","python","Raspberry Pi","Raspberry Pi projects","repl","serial port","thonny","usb","Windows 10","Windows 11","Windows 7","Windows 8.1","zadig"],"articleSection":["Python","Raspberry Pi Pico","Tutorials"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/","url":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/","name":"Raspberry Pi Pico et MicroPython sur Windows | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png","datePublished":"2021-01-30T15:11:05+00:00","dateModified":"2023-11-25T20:40:52+00:00","description":"Un guide complet sur MicroPython sur un Pi avec Windows (7\/8\/10), y compris des instructions sur l'installation et l'acc\u00e8s au port s\u00e9rie Pico.","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2021\/01\/Raspberry-Pi-Pico-and-MicroPython-on-Windows-Title-Image.png","width":1200,"height":675,"caption":"Raspberry Pi Pico and MicroPython on Windows Title Image"},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/raspberry-pi-how-to\/"},{"@type":"ListItem","position":3,"name":"Raspberry Pi Pico and MicroPython on Windows"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"PiCockpit","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee","name":"baie de framboise","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","caption":"raspi berry"},"description":"Je suis l\u00e0 pour r\u00e9pondre \u00e0 toutes vos questions sur le Raspberry Pi et j'aime partager de nouvelles id\u00e9es de projets pour le Raspberry Pi et donner des conseils rapides. Bien s\u00fbr, je vous aiderai aussi avec PiCockpit et comment rendre votre Raspberry Pi encore plus facile \u00e0 utiliser avec cette solution de surveillance pour Raspberry Pi :-)","sameAs":["https:\/\/picockpit.com"],"url":"https:\/\/picockpit.com\/raspberry-pi\/fr\/author\/raspi-berry\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/comments?post=623"}],"version-history":[{"count":30,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":6202,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/posts\/623\/revisions\/6202"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/media\/6201"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/media?parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/categories?post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/fr\/wp-json\/wp\/v2\/tags?post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}