{"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\/pt\/framboesa-pi-pico-e-micropython-on-windows\/","title":{"rendered":"Raspberry Pi Pico e MicroPython no 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 e MicroPython no Windows Imagem de t\u00edtulo\" 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>Este artigo responde \u00e0 pergunta: Como \u00e9 que eu uso o Raspberry Pi Pico com o MicroPython no Windows? N\u00f3s tamb\u00e9m mostramos como instalar o driver correto para a \"Board CDC\" (que o Pico vai aparecer quando o MicroPython estiver instalado) no Windows 8.1. (Tamb\u00e9m discutiremos as diferen\u00e7as entre MicroPython e CircuitPython quando aplic\u00e1vel - onde a placa ser\u00e1 chamada de \"CircuitPython CDC Control\"). <\/p>\n\n\n\n<p>Finalmente, vamos mostrar como se conectar ao Pico usando PuTTY, e uma op\u00e7\u00e3o mais confort\u00e1vel usando Thonny (que \u00e9 um IDE Python, integrado com o Pico!)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introdu\u00e7\u00e3o: O que \u00e9 o Pico e o que \u00e9 MicroPython?<\/h2>\n\n\n\n<p>O <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-pico\/\">Framboesa Pi Pico<\/a> \u00e9 uma nova placa microcontroladora da Raspberry Pi, com o chip microcontrolador RP2040 desenvolvido internamente. <\/p>\n\n\n\n<p>A Raspberry Pi concebeu imensas funcionalidades interessantes para o RP2040 (a minha favorita \u00e9 a PIO - programmable IO, onde se pode emular imensas interfaces de hardware que requerem uma temporiza\u00e7\u00e3o precisa, etc.). - Vou falar sobre isso noutro artigo no futuro), e o Pico \u00e9 uma plataforma de refer\u00eancia muito boa na qual o RP2040 \u00e9 implementado.<\/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, uma placa microcontroladora 4 $<\/a><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Como \u00e9 que um Raspberry Pi Pico \u00e9 diferente de um Raspberry Pi Zero W?<\/h3>\n\n\n\n<p>A diferen\u00e7a entre um microcontrolador (como o <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-pico-mit-rp2040?variant=37942462972084\">Pico<\/a>) e um computador de placa \u00fanica (<a href=\"https:\/\/buyzero.de\/collections\/boards-kits\/products\/raspberry-pi-zero-w?variant=38399156114\">digamos Pi Zero W<\/a>) \u00e9 mais ou menos o seguinte: programa-se o Pico diretamente (por exemplo, em C), <strong>sem um sistema operativo<\/strong>enquanto a<a href=\"https:\/\/buyzero.de\/collections\/boards-kits\/products\/raspberry-pi-zero-w?variant=38399156114\"> Pi Zero W<\/a> normalmente correm Linux. <\/p>\n\n\n\n<p>Isto tem vantagens, como o tempo real, mas tamb\u00e9m desvantagens - \u00e9 preciso saber mais sobre o hardware que se est\u00e1 a utilizar e \u00e9 preciso implementar muitas funcionalidades que se tomariam como garantidas num sistema operativo moderno (por exemplo, acesso a ficheiros). <\/p>\n\n\n\n<p>O Pico tem menos recursos em compara\u00e7\u00e3o com o Pi Zero W (por exemplo, significativamente menos RAM, sem GPU VideoCore, etc.) - mas consome menos energia e tem recursos adicionais, como o j\u00e1 mencionado PIO e entradas anal\u00f3gicas (ADC). <\/p>\n\n\n\n<p>O Pico \u00e9 uma boa escolha para projectos que n\u00e3o requerem necessariamente conectividade de rede, sa\u00edda HDMI, entrada e processamento de c\u00e2maras. Por outras palavras, se quiser fazer interface com hardware, ter uma longa dura\u00e7\u00e3o da bateria, etc. - ent\u00e3o o Pico \u00e9 para si.  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Que software j\u00e1 existe para o Pico?<\/h3>\n\n\n\n<p>O Pico pode ser flashado utilizando diferentes softwares, que s\u00e3o fornecidos em <strong>Ficheiros UF2<\/strong> (<a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/\">ver guia de inicia\u00e7\u00e3o ao Pico<\/a>). Raspberry Pi fornece v\u00e1rios ficheiros UF2 para que possa come\u00e7ar:<\/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>(que ser\u00e1 o foco deste artigo) e um primo pr\u00f3ximo, CircuitPython<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/85aac7081a166b7a3d0739970c3927c9\/blink.uf2\">Pestanejar um LED<\/a> (Pestanejar UF2)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/d211f824b207c328c7cae7b0ff733187\/hello_world.uf2\">Ol\u00e1 mundo<\/a> (dir\u00e1 \"Ol\u00e1 mundo\" se se conectar atrav\u00e9s de um terminal)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/d6bbb56350627ecd9cf080cbee142b28\/picoprobe.uf2\">Picoprobe <\/a>(usar um Pico para depurar outro Pico)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/static\/6f6f31460c258138bd33cc96ddd76b91\/flash_nuke.uf2\">Reiniciar a mem\u00f3ria flash<\/a> (ir\u00e1 definir a mem\u00f3ria Flash para esvaziar)<\/li>\n<\/ul>\n\n\n\n<p>H\u00e1 muito mais <a href=\"https:\/\/github.com\/raspberrypi\/pico-examples\">de exemplos que podem ser encontrados aqui<\/a> (c\u00f3digo C).<\/p>\n\n\n\n<p><strong>Nota: <\/strong>Estou a ligar para os ficheiros UF2 mais recentes a partir de 30.01.2021 - especificamente o MicroPython pode ser atualizado, por isso n\u00e3o te esque\u00e7as de verificar a p\u00e1gina <a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/\">P\u00e1gina de in\u00edcio de Raspberry Pi Pico<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MicroPython<\/h3>\n\n\n\n<p>Se a perspectiva de entrar em pleno e programar em C lhe parecer um pouco assustadora, pode come\u00e7ar em MicroPython. Neste caso, algum software est\u00e1 pr\u00e9-instalado no Raspberry Pi Pico (o ficheiro MicroPython UF2), que ir\u00e1 executar um pequeno int\u00e9rprete Python.<\/p>\n\n\n\n<p>Chama-se MicroPython porque n\u00e3o suporta a biblioteca padr\u00e3o Python 3 completa. MicroPython \u00e9 destinado a ambientes restritos, como o Pico. O Pico tem um total de 2 MB de RAM - isto n\u00e3o vai caber em tudo o que a Python 3 traz consigo. Ver <a href=\"https:\/\/github.com\/micropython\/micropython\/wiki\/Differences\">esta p\u00e1gina Github para diferen\u00e7as de CPython a MicroPython<\/a>. Tamb\u00e9m, aqui est\u00e1 o oficial <a href=\"http:\/\/micropython.org\/\">P\u00e1gina inicial de MicroPython<\/a>e o <strong><a href=\"http:\/\/docs.micropython.org\/en\/latest\/index.html\">documenta\u00e7\u00e3o oficial da MicroPython<\/a><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CircuitPython<\/h3>\n\n\n\n<p>Nota: a maioria das instru\u00e7\u00f5es tamb\u00e9m se aplica \u00e0s placas baseadas no CircuitPython RP2040 no Windows, por exemplo a Adafruit Feather RP2040, mas ter\u00e1 de seguir passos um pouco diferentes - vou apontar as diferen\u00e7as neste artigo. <\/p>\n\n\n\n<p>CircuitPython \u00e9 basicamente uma variante de MicroPython que est\u00e1 a ser desenvolvida pela Adafruit. <\/p>\n\n\n\n<p>A pr\u00f3pria placa ser\u00e1 chamada de forma diferente no seu gestor de dispositivos depois de piscar (CircuitPython CDC Control) - e necessitar\u00e1 de software diferente, claro. Aqui est\u00e1 o que precisa, para come\u00e7ar:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/circuitpython.org\/board\/adafruit_feather_rp2040\/\">Adafruit Feather RP2040 Descarregar p\u00e1gina<\/a> (ficheiro CircuitPython 7.0.0 UF2)<\/li>\n<\/ul>\n\n\n\n<p>Neste artigo, tamb\u00e9m lhe mostraremos como instalar bibliotecas CircuitPython em dispositivos baseados em RP2040 no Windows, e como executar e parar programas usando Thonny. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">O que vai receber com o MicroPython UF2? <\/h3>\n\n\n\n<p>Uma vez instalado o MicroPython no Pico, poder\u00e1 ligar-se ao Pico usando a consola em s\u00e9rie (mostraremos como neste artigo), e come\u00e7ar a escrever o c\u00f3digo Python no Pico.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Instala\u00e7\u00e3o de MicroPython no Pico<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Retirar a energia do Pico<\/li>\n\n\n\n<li>Prima o bot\u00e3o BOOTSEL e mantenha-o premido<\/li>\n\n\n\n<li>ligue o Pico ao seu PC usando um cabo microUSB para USB<\/li>\n\n\n\n<li>agora pode soltar o bot\u00e3o 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\">Prima o bot\u00e3o BOOTSEL e mantenha-o premido antes de ligar o cabo microUSB <\/figcaption><\/figure>\n<\/div>\n\n\n<p>O Pico deve agora estar vis\u00edvel no seu sistema de ficheiros, como 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\">O Pico aparece como RPI-RP2<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center\"><em>(Sidenote: O que ser\u00e1 que foi a RPI-RP1?)<\/em><\/p>\n\n\n\n<p>O Pico emula uma unidade flash FAT32, que tem dois ficheiros: INDEX.HTM e 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\">Gestor de drives do Windows<\/figcaption><\/figure>\n<\/div>\n\n\n<p>De facto, o Windows Drive Manager mostra o Pico como sendo uma unidade flash FAT de 128 MB.<\/p>\n\n\n\n<p><strong>N\u00e3o cometa o erro de tentar armazenar quaisquer ficheiros no Pico<\/strong> <strong>deste modo<\/strong>: ser\u00e3o largados silenciosamente. Mesmo que pare\u00e7a que est\u00e3o escritos, isso \u00e9 apenas o Windows a armazenar as opera\u00e7\u00f5es - os seus ficheiros desaparecer\u00e3o! J\u00e1 mencionei que o Pico tem apenas 2MB Flash? \u00c9 descaradamente mentir sobre os 128MB aqui (o RP2040 deve suportar at\u00e9 16MB de Flash, AFAIK). <\/p>\n\n\n\n<p><em>Nota lateral: Isto faz-me lembrar um pouco a minha viagem \u00e0 \u00cdndia, onde comprei unidades de mem\u00f3ria com 128 GB de capacidade - que escreviam os dados para o Nirvana. Quando tentei devolver a pen e receber o meu dinheiro de volta, o vendedor tinha desaparecido... as aventuras que se podem viver \ud83d\ude42<\/em><\/p>\n\n\n\n<p>Contudo, se copiar o tipo certo de ficheiro - o ficheiro UF2 - para esta unidade, este ser\u00e1 reconhecido e escrito. <\/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\">C\u00f3pia do ficheiro do Micropython UF2 para o Pico<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Pode arrast\u00e1-lo e larg\u00e1-lo do seu navegador, depois de o ter descarregado, ou copi\u00e1-lo e col\u00e1-lo. Uma vez conclu\u00edda a c\u00f3pia, o Pico reiniciar\u00e1 automaticamente, e n\u00e3o ver\u00e1 mais uma pen drive. <\/p>\n\n\n\n<p>Nota: Se quiser usar o CircuitPython, \u00e9 claro que neste passo deve usar o ficheiro CircuitPython UF2. <\/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\">Ap\u00f3s reiniciar, o Pico desaparece do gestor de unidades do Windows<\/figcaption><\/figure>\n<\/div>\n\n\n<p>O Pico agora (ap\u00f3s a reinicializa\u00e7\u00e3o) corre MicroPython, que fornece uma porta s\u00e9rie (COM-port) via USB. (Em termos t\u00e9cnicos, esta \u00e9 a classe 02 do dispositivo USB = <strong>Comunica\u00e7\u00f5es e Controlo CDC<\/strong> e dispositivo USB SubClasse 02). <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Liga\u00e7\u00e3o ao Pico, Windows 10<\/h2>\n\n\n\n<p>O Windows 10 facilita a nossa liga\u00e7\u00e3o ao Pico, pois o driver COM-Port necess\u00e1rio (usbser.inf) ser\u00e1 automaticamente instalado e activado para si.<\/p>\n\n\n\n<p>Para verificar em que porta COM est\u00e1 ligado, abra o seu gestor de dispositivos:<\/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\">Para abrir o gestor de dispositivos, digite dispositivo na pesquisa do Windows, e clique em Device Manager<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Aqui, poder\u00e1 ver o novo Dispositivo de S\u00e9rie USB, com o n\u00famero da porta COM (que necessitar\u00e1 num segundo para ligar), em Portas (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\">Apareceu um novo dispositivo de s\u00e9rie, que lhe permite ligar-se ao Pico<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Para verificar se este \u00e9, de facto, o Pico, a executar MicroPython, pode fazer o seguinte: <\/p>\n\n\n\n<p>Clique em View, e seleccione 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\">O Gestor de Dispositivos permite-lhe mostrar os dispositivos em diferentes vistas<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Aqui ver\u00e1 uma entrada \"Board in FS mode\", com os dois n\u00f3s \"USB Composite Device\" e \"USB Serial Device (<strong>COM3<\/strong>)\u201d. A COM3 \u00e9 importante, ter\u00e1 de a utilizar para a PuTTY (ver abaixo).<\/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>Podemos investigar melhor os dispositivos clicando com o bot\u00e3o direito do rato sobre eles, e seleccionando a entrada de propriedades apropriadas a partir do menu de contexto. As propriedades para Board no modo FS est\u00e3o vazias:<\/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>O Dispositivo Composto USB mostra \"Board in FS mode\", uma vez que \u00e9 a descri\u00e7\u00e3o do dispositivo relatado pelo 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>Nota: este \u00e9 o MicroPython do Pico. Quando o reflicta com software diferente, mostrar\u00e1 aqui resultados diferentes!<\/p>\n\n\n\n<p>O pr\u00f3prio dispositivo de s\u00e9rie USB ir\u00e1 mostrar algumas propriedades interessantes:<\/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\">A descri\u00e7\u00e3o do dispositivo reportado no Bus \u00e9 \"Board CDC\".<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Nota: a descri\u00e7\u00e3o do dispositivo da placa ser\u00e1 \"CircuitPython CDC Control\" em vez de \"Board CDC\" se estiver a usar o 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\">As defini\u00e7\u00f5es padr\u00e3o das portas s\u00e3o 9600 bits por segundo, 8 bits de dados, sem paridade, 1 bit de paragem, sem controlo de fluxo - e funcionam (ver abaixo)<\/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\">A classe USB \u00e9 02 e a subclasse USB \u00e9 02<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Se souber o que procura, os IDs de Hardware (VID = id de fornecedor, e PID = id de produto) s\u00e3o \u00fateis:<\/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; a identifica\u00e7\u00e3o do fornecedor \u00e9 <strong>2E8A <\/strong>(em hex) ou <strong>11914 <\/strong>(em decimal), que \u00e9 <strong>Raspberry Pi<\/strong><\/p>\n\n\n\n<p>PID_0005 -&gt; a identifica\u00e7\u00e3o do produto \u00e9 <strong>5<\/strong>que o quadro mostrar\u00e1 ao executar MicroPython (a identifica\u00e7\u00e3o padr\u00e3o do produto \u00e9 <strong>3<\/strong>)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sidenote: Registo de depura\u00e7\u00e3o do Browser Chrome<\/h3>\n\n\n\n<p>Esta informa\u00e7\u00e3o tamb\u00e9m pode ser obtida utilizando o navegador Chrome. <\/p>\n\n\n\n<p><a href=\"chrome:\/\/device-log\">chrome:\/\/device-log<\/a><\/p>\n\n\n\n<p>permitir-lhe-\u00e1 ver os Dispositivos actualmente anexados<\/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\">Na imagem acima, v\u00ea-se a sa\u00edda do registo do dispositivo Chrome, mostrando como o Pico aparece como \"Raspberry Pi\", \"RP2 Boot\" antes de piscar com MicroPython, e como \"MicroPython\", \"Board in FS mode\". Repare nos diferentes ids de produto!<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Voltar ao 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>Como pode ver na imagem acima, o Windows 10 instalou automaticamente o usbser (USB Serial Driver) para si - para que possa come\u00e7ar a utilizar o Pico imediatamente.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PuTTY<\/h2>\n\n\n\n<p>PuTTY \u00e9 um cliente telnet \/ SSH. Ir\u00e1 utiliz\u00e1-lo para se ligar ao Pico, e falar com a REPL da MicroPython. <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\">Descarregar PuTTY aqui<\/a>. (Pode ir com o Windows Installer MSI de 64 bits para a maioria das instala\u00e7\u00f5es Windows 10).<\/p>\n\n\n\n<p>PuTTY aberto. Introduza as defini\u00e7\u00f5es correctas:<\/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>O tipo de liga\u00e7\u00e3o tem de ser definido para <strong>Serial<\/strong><\/li>\n\n\n\n<li>A Linha de S\u00e9rie precisa de ser definida para o que quer que a sua investiga\u00e7\u00e3o de cima tenha rendido. No meu caso, esta \u00e9 <strong>COM3<\/strong>. No seu caso, o mais prov\u00e1vel \u00e9 que seja algo diferente!<\/li>\n\n\n\n<li>A velocidade pode ser deixada em 9600 por agora<\/li>\n<\/ul>\n\n\n\n<p>Clique em Abrir, e ser\u00e1 aberto um Terminal:<\/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>Para obter a solicita\u00e7\u00e3o inicial, prima Enter uma vez<\/p>\n\n\n\n<p>Depois pode come\u00e7ar a escrever o c\u00f3digo Python ap\u00f3s o pedido, que ser\u00e1 interpretado imediatamente. Tente entrar no cl\u00e1ssico \"Ol\u00e1 mundo\":<\/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=\"C\u00f3pia\" 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 ir\u00e1 responder com<\/p>\n\n\n\n<p><em>Ol\u00e1 mundo!<\/em><\/p>\n\n\n\n<p>como esperado \ud83d\ude42<\/p>\n\n\n\n<p>Agora que o contacto inicial est\u00e1 estabelecido, desejo-lhe uma codifica\u00e7\u00e3o feliz! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Thonny: uma IDE Python, trabalha com a Pico!<\/h2>\n\n\n\n<p>Utilizar PuTTY n\u00e3o \u00e9 muito confort\u00e1vel para sess\u00f5es mais longas, ou quando quer carregar muito c\u00f3digo no seu Pico. Felizmente, a aplica\u00e7\u00e3o de c\u00f3digo aberto Thonny (que est\u00e1 instalada por defeito no SO Raspberry Pi) tamb\u00e9m est\u00e1 dispon\u00edvel para Windows e integra suporte Pico (MicroPython e CircuitPython)<\/p>\n\n\n\n<p><strong>Primeiro passo<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/thonny.org\/\">Descarregar Thonny aqui<\/a>e instal\u00e1-lo<\/p>\n\n\n\n<p><strong>Segundo passo<\/strong><\/p>\n\n\n\n<p>Ligue o seu Pico, como descrito acima - agora deve ter um n\u00famero COM - se desejar, pode testar usando o m\u00e9todo PuTTY descrito acima, se pode chegar ao seu Pico.<\/p>\n\n\n\n<p><strong>Terceiro passo<\/strong><\/p>\n\n\n\n<p>Comece Thonny, e clique no bot\u00e3o <strong>Ferramentas<\/strong> menu, escolha <strong>Op\u00e7\u00f5es<\/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\">Thonny ecr\u00e3 de arranque por defeito no Windows, menu Ferramentas, seleccionar Op\u00e7\u00f5es aqui.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Quarto passo<\/strong>: definir o Pico como o int\u00e9rprete<\/p>\n\n\n\n<p>Clique no separador Int\u00e9rprete. Ver\u00e1 este ecr\u00e3 por defeito:<\/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\">O mesmo int\u00e9rprete que executa o Thonny (por defeito) \u00e9 o Interpeter por defeito<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Clique e seleccione 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\">O suporte MicroPython (Raspberry Pi Pico) est\u00e1 integrado no Thonny<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Nota<\/strong>: se estiver a utilizar <strong>CircuitPython<\/strong>\u00e9 necess\u00e1rio, em vez disso, seleccionar \"<strong>CircuitPython (gen\u00e9rico)<\/strong>\" a partir deste menu pendente.<\/p>\n\n\n\n<p>Pode deixar a porta em \"tentar detectar a porta automaticamente\", ou definir uma porta espec\u00edfica (j\u00e1 vimos acima como pode ser determinado o n\u00famero correcto da porta).<\/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\">Tentar detectar o porto automaticamente<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Nota: o porto ainda deve aparecer na descida, por isso pode ser uma boa ideia verificar novamente se est\u00e1 l\u00e1:<\/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\">no meu computador, o Conselho CDC (Pico com MicroPython) est\u00e1 no porto COM5<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Vou deix\u00e1-lo como \"tentar detectar porto automaticamente\". <strong>Clique em OK para guardar a configura\u00e7\u00e3o.<\/strong><\/p>\n\n\n\n<p>O seu ecr\u00e3 deve agora mudar para isto:<\/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\">Note o alerta MicroPython, com Raspberry Pi Pico com RP2040<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Etapa cinco: teste<\/strong><\/p>\n\n\n\n<p>Agora pode testar a comunica\u00e7\u00e3o com o Pico.<\/p>\n\n\n\n<p>Tipo<\/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=\"C\u00f3pia\" 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>no prompt do MicroPython, e pressione enter<\/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\">Ol\u00e1 mundo, o caminho picockpit.com \ud83d\ude42<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Ver\u00e1 o Pico a responder-lhe.<\/p>\n\n\n\n<p>Parab\u00e9ns, conseguiu ligar Thonny com o Pico no Windows!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Argumentos mais complexos: Piscar um LED com Thonny<\/h3>\n\n\n\n<p>O REPL (read evaluate print loop) que acabou de ver \u00e9 agrad\u00e1vel, mas para projectos mais complexos, gostar\u00edamos de introduzir a fonte primeiro, ou carreg\u00e1-la a partir de um ficheiro.<\/p>\n\n\n\n<p>\u00c9 para isto que a parte de cima da janela Thonny pode ser utilizada. <\/p>\n\n\n\n<p>Introduza o seu c\u00f3digo. No meu exemplo, vamos piscar o LED de bordo (que \u00e9 o equivalente do hardware hello world!), e fazer um loop para sempre.<\/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=\"C\u00f3pia\" 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>Presta aten\u00e7\u00e3o \u00e0 indenta\u00e7\u00e3o correcta em Python (os espa\u00e7os em branco s\u00e3o utilizados para fins de controlo em 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\">O c\u00f3digo para piscar o LED a bordo<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Agora clique no bot\u00e3o \"run\" (executar)<\/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 perguntar-lhe-\u00e1 onde poupar para<\/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\">Guardar para este computador ou Raspberry Pi Pico?<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Seleccionar 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>Escolhi o nome do ficheiro hello.py - Clique em OK para o guardar<\/p>\n\n\n\n<p>Uma vez premido o bot\u00e3o OK, o seu c\u00f3digo come\u00e7ar\u00e1 a ser executado. O LED a bordo do Pico deve come\u00e7ar a piscar, e ver\u00e1 a sa\u00edda na Concha:<\/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_CONTENTE<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Nota: N\u00e3o tive de entrar no comando %Run -c $EDITOR_CONTENT, Thonny estava a faz\u00ea-lo sozinho. A sa\u00edda abaixo \u00e9 do nosso c\u00f3digo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CircuitPython no Thonny no Windows<\/h3>\n\n\n\n<p>Seguir os mesmos passos, mas seleccionar CircuitPython (gen\u00e9rico) como int\u00e9rprete.<\/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>A concha Thonny ir\u00e1 mostrar-lhe uma confirma\u00e7\u00e3o diferente:<\/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\">Diz aqui: Adafruit CircuitPython 7.0.0 em 2021-09-20; Adafruit Feather RP2040 com rp2040<br>Adafruit CircuitPython 7.0.0 em 2021-09-20; Adafruit Feather RP2040 com rp2040<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Janelas 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\">O Raspberry Pi Pico \u00e9 \"Board CDC\", e mostrado em estado de erro<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Windows 8.1 N\u00c3O ir\u00e1 carregar automaticamente o controlador de s\u00e9rie, e mostrar o dispositivo num estado de erro.  <\/p>\n\n\n\n<p>Nota: com CircuitPython, o nome do dispositivo ser\u00e1 \"CircuitPython CDC control\" em vez disso. O mesmo procedimento. <\/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\">CircuitPython CDC controlo em Windows 8.1<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Eis como s\u00e3o as propriedades do CDC (o MicroPython do Pico) do Conselho de Administra\u00e7\u00e3o:<\/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>Diz que os condutores para este dispositivo n\u00e3o foram instalados (C\u00f3digo 28). <\/p>\n\n\n\n<p>Uma solu\u00e7\u00e3o para resolver este problema \u00e9 o <a href=\"https:\/\/zadig.akeo.ie\/\">Ferramenta Zadig<\/a>que pode descarregar gratuitamente:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/zadig.akeo.ie\/downloads\/\"><strong>Descarregar Zadig-2.5.exe aqui<\/strong><\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Aten\u00e7\u00e3o: <\/strong>V\u00e1rios scanners de v\u00edrus parecem concordar que o instalador_x64.exe contido em Zadig 2.7 tem \"Trojan.Tedy\".  Talvez isto seja um falso alarme, no entanto: recomendo a utiliza\u00e7\u00e3o de <strong>Zadig-2.5.exe<\/strong> em vez disso, o que n\u00e3o me deu estes avisos (apenas verificados uma segunda vez). Mais vale prevenir do que remediar!<\/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>ajuda-o a instalar drivers USB gen\u00e9ricos para o ajudar a aceder a dispositivos USB. <\/p>\n\n\n\n<p>No nosso caso, queremos o condutor USB Serial (CDC).<\/p>\n\n\n\n<p>Seleccione Board CDC (Interface 0) no menu pendente acima e USB Serial (CDC) no outro campo. Clique em Instalar controlador. <\/p>\n\n\n\n<p>Ap\u00f3s a instala\u00e7\u00e3o, ver\u00e1 que o condutor est\u00e1 agora definido para 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>E poder\u00e1 ligar-se, como descrevi no Windows 10, utilizando o n\u00famero correcto da porta 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\">Gestor de dispositivos mostrando agora o CDC da Direc\u00e7\u00e3o com condutor<\/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\">Ol\u00e1 mundo para MicroPython no Pico usando Windows 8.1<\/figcaption><\/figure>\n<\/div>\n\n\n<p>sidenote:<\/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\">Este \u00e9 o di\u00e1logo, mostrando a libwdi como fabricante de condutores<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Porta Pico\/Serial no Windows 7<\/h2>\n\n\n\n<p>De acordo com um cliente, <a href=\"https:\/\/zadig.akeo.ie\/\">Zadig <\/a>ajudou a instalar o driver da porta de s\u00e9rie tamb\u00e9m no Windows 7, e o Pico era utiliz\u00e1vel a seguir! N\u00e3o deixe de utilizar <a href=\"https:\/\/zadig.akeo.ie\/downloads\/\">Zadig 2.5<\/a>, pois o mais recente Zadig 2.7 foi assinalado pelo meu Scanner de V\u00edrus durante a instala\u00e7\u00e3o do condutor. (N\u00e3o sei bem porqu\u00ea, mas mais vale prevenir do que remediar - o antigo funciona)  <\/p>\n\n\n\n<p>Se precisar de um guia passo a passo, consulte o guia para Windows 8.1 acima - deve ser bastante semelhante numa m\u00e1quina Windows 8.1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Instala\u00e7\u00e3o de bibliotecas e programa\u00e7\u00e3o de uma placa CircuitPython RP2040 no Windows<\/h2>\n\n\n\n<p>Se estiver a usar por exemplo um Adafruit Feather RP2040, poder\u00e1 querer usar o CircuitPython nele. Adafruit tem um <a href=\"https:\/\/learn.adafruit.com\/adafruit-feather-rp2040-pico\/built-in-neopixel-led\">NeoPixel RGB<\/a> sobre ele, que necessita de bibliotecas para ser instalado no <strong>lib <\/strong>pasta no dispositivo. <\/p>\n\n\n\n<p>(nota: <a href=\"https:\/\/learn.adafruit.com\/adafruit-feather-rp2040-pico\/built-in-neopixel-led\">descarregue as bibliotecas aqui<\/a> - clicar no link \"Download Project Bundle\"). <\/p>\n\n\n\n<p>Ao extrair a pasta do pacote do projecto, ver\u00e1 duas subpastas diferentes com CircuitPython 6.x e 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>Estou a usar aqui a vers\u00e3o 7.x do CircuitPython, enquanto flashei o <a href=\"https:\/\/circuitpython.org\/board\/adafruit_feather_rp2040\/\">7.0.0 Vers\u00e3o CircuitPython<\/a>. <\/p>\n\n\n\n<p>Notar\u00e1 uma unidade chamada \"CIRCUITPY\" no seu Explorador:<\/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\">CIRCUITPY drive e o seu conte\u00fado inicial (lib, boot_out.txt, code.py)<\/figcaption><\/figure>\n<\/div>\n\n\n<p>O <strong>lib <\/strong>est\u00e1 vazia com uma nova instala\u00e7\u00e3o de CircuitPython. Usando o Explorador do Windows podemos simplesmente copiar &amp; colar ficheiros aqui. <\/p>\n\n\n\n<p> Copiar as bibliotecas necess\u00e1rias da pasta lib descarregada para a pasta CIRCUITPY lib:<\/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\">copiar as bibliotecas necess\u00e1rias para a pasta lib<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Agora tamb\u00e9m podemos sobrescrever 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\">substituir code.py<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Usando Thonny podemos editar e executar o ficheiro code.py. Clique no \u00edcone abrir no Thonny, e seleccione \"CircuitPython device\" no di\u00e1logo \"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\">Seleccione aqui o dispositivo CircuitPython<\/figcaption><\/figure>\n<\/div>\n\n\n<p> E aqui pode abrir 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\">Clique em code.py e OK<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Agora a sua janela Thonny deve ficar um pouco parecida com esta:<\/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 mostrado em cima, a concha mostrada em baixo<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Prima F5 no seu teclado, ou clique no \u00edcone de execu\u00e7\u00e3o <\/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\">o \u00edcone de execu\u00e7\u00e3o<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Se tudo correr bem, o LED NeoPixel RGB no seu Adafruit Feather RP2040 deve agora come\u00e7ar a piscar em cores diferentes. Parab\u00e9ns \ud83d\ude42<\/p>\n\n\n\n<p>Agora pode ir em frente e brincar com o gui\u00e3o - possivelmente pode modificar as cores, ou o tempo entre as mudan\u00e7as de cor? Ou adicionar outras fun\u00e7\u00f5es. <\/p>\n\n\n\n<p>Para poder executar o seu gui\u00e3o modificado, prima Ctrl + C na Shell (ou seleccione Executar &gt; Interromper Execu\u00e7\u00e3o no Menu Thonny). Agora pode carregar novamente o seu gui\u00e3o. <\/p>\n\n\n\n<p>Uma coisa \u00f3ptima para depura\u00e7\u00e3o \u00e9 que obter\u00e1 a sa\u00edda da consola com Thonny, para que possa utilizar declara\u00e7\u00f5es impressas para produzir informa\u00e7\u00e3o:<\/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 outputting print statements da Adafruit Feather RP2040<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Pacote Adafruit CircuitPython <\/h3>\n\n\n\n<p>Adafruit fornece um conveniente download de m\u00faltiplas bibliotecas num ZIP. Descarregar o circuito adafruit-circuitpython-bundle-7.x.-mpy correspondente ou -6.x. mpy <a href=\"https:\/\/github.com\/adafruit\/Adafruit_CircuitPython_Bundle\/releases\">aqui<\/a>. Pode instalar v\u00e1rias ou todas as bibliotecas como discutido acima simplesmente usando o Windows Explorer.  Um carregamento completo de todas as bibliotecas teria cerca de 1,2 MB de tamanho, o Adafruit Feather RP2040 tem espa\u00e7o suficiente para o permitir. A c\u00f3pia pode demorar alguns minutos.  <\/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\">Notas diversas<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Posso utilizar tamb\u00e9m os procedimentos deste guia para o CircuitPython? <\/h3>\n\n\n\n<p>Absolutamente, sim. Por exemplo, pode usar Zadig no Windows 8.1 (ver a descri\u00e7\u00e3o acima para detalhes. Use a vers\u00e3o 2.5.730 de Zadig!). Procurar\u00e1 um dispositivo \"CircuitPython CDC control\" em vez do dispositivo \"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 para o dispositivo de controlo do CircuitPython CDC<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Instala\u00e7\u00e3o do condutor falha com Zadig? <\/h3>\n\n\n\n<p>Isto pode ser devido ao software Antiv\u00edrus. Talvez um falso alarme, mas n\u00e3o posso ter a certeza disso. O meu scanner de v\u00edrus (Bitdefender) diz-me o seguinte: <\/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. Wir empfehlen die Durchf\u00fchrung eines System-Scans, um weitere Infektionen auszuschlie\u00dfen\". <\/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>V\u00e1rios scanners de v\u00edrus parecem concordar que o instalador_x64.exe (parte do driver USB) tem \"Trojan.Tedy\". Recomendo que se tente usar Zadig-2.5.exe em vez disso. <a href=\"https:\/\/zadig.akeo.ie\/downloads\/\">Que pode descarregar aqui<\/a>. Utilizei Zadig-2.5 para instalar um driver de s\u00e9rie CircuitPython USB na minha instala\u00e7\u00e3o Windows 8.1 (que \u00e9 a minha m\u00e1quina principal). <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Como posso parar a execu\u00e7\u00e3o do c\u00f3digo no Pico em Thonny?<\/h3>\n\n\n\n<p>Clique na concha, e pressione Ctrl+C. Isto dever\u00e1 parar a execu\u00e7\u00e3o do c\u00f3digo actual:<\/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 parou o c\u00f3digo<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Repeti\u00e7\u00e3o de declara\u00e7\u00f5es anteriores em Thonny<\/h3>\n\n\n\n<p>\u00c9 conveniente executar novamente o mesmo comando - prima a tecla para cima no teclado no prompt da shell para chamar um hist\u00f3rico de comandos anteriores.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Como posso saber quando o meu Pi Pico est\u00e1 desligado do Thonny?<\/h3>\n\n\n\n<p>Receber\u00e1 uma mensagem de erro quando tentar executar o c\u00f3digo, algo como isto:<\/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\">Erro ao consultar vari\u00e1veis globais, serial.serialutil.SerialTimeoutException: Write timeout<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Isto significa que Thonny n\u00e3o pode escrever para a porta de s\u00e9rie onde se espera que o Pico esteja.<\/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\">N\u00e3o foi poss\u00edvel encontrar automaticamente o erro do dispositivo em Thonny<\/h3>\n\n\n\n<p>Se obtiver o seguinte erro:<\/p>\n\n\n\n<p><em>N\u00e3o foi poss\u00edvel encontrar o dispositivo automaticamente.<br>Verifique a liga\u00e7\u00e3o (certificando-se de que o dispositivo n\u00e3o est\u00e1 em modo bootloader) ou escolha<br>\"Configurar int\u00e9rprete\" no menu do int\u00e9rprete (canto inferior direito da janela)<br>para seleccionar um porto espec\u00edfico ou outro int\u00e9rprete.<\/em><\/p>\n\n\n\n<p>Verifique se seleccionou o interpretador correto. Se o seu dispositivo executar CircuitPython em vez de MicroPython, tem de selecionar <strong>CircuitPython (gen\u00e9rico)<\/strong> como int\u00e9rprete em Thonny. Ver as informa\u00e7\u00f5es relevantes neste artigo para instru\u00e7\u00f5es.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Suas dicas para Pico\/MicroPython no Windows?<\/h2>\n\n\n\n<p>Informe-nos nos coment\u00e1rios se tiver outras dicas para come\u00e7ar a utilizar o Pico e MicroPython no Windows, actualizaremos o artigo em conformidade \ud83d\ude42<\/p>\n\n\n\n<p>Desfrute do seu Pico e divirta-se com os projectos fant\u00e1sticos que pode fazer com ele!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mais posts no blog Pico no PiCockpit<\/h2>\n\n\n\n<p>Se gostou de ler este artigo, poder\u00e1 tamb\u00e9m gostar de ler o seguinte:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-video-output\/\">Sa\u00edda de v\u00eddeo utilizando o 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 e 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%2Fpt%2Fframboesa-pi-pico-e-micropython-on-windows%2F&text=Raspberry%20Pi%20Pico%20and%20MicroPython%20on%20Windows\" title=\"Compartilhar no X\" aria-label=\"Compartilhar no 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\">partilhar<\/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%2Fpt%2Fframboesa-pi-pico-e-micropython-on-windows%2F\" title=\"Partilhar no Facebook\" aria-label=\"Partilhar no 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\">partilhar<\/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%2Fpt%2Fframboesa-pi-pico-e-micropython-on-windows%2F&text=Raspberry%20Pi%20Pico%20and%20MicroPython%20on%20Windows\" title=\"Compartilhar no Telegram\" aria-label=\"Compartilhar no 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\">partilhar<\/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%2Fpt%2Fframboesa-pi-pico-e-micropython-on-windows%2F\" title=\"Compartilhar no Reddit\" aria-label=\"Compartilhar no 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\">partilhar<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Este artigo responde \u00e0 pergunta: Como \u00e9 que eu uso o Raspberry Pi Pico com o MicroPython no Windows? N\u00f3s tamb\u00e9m mostramos como instalar o driver correto para \"Board CDC\" (que o Pico ir\u00e1 aparecer quando o MicroPython estiver instalado) no Windows 8.1. (Tamb\u00e9m discutiremos as diferen\u00e7as entre MicroPython e CircuitPython quando aplic\u00e1vel...<\/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.4 - 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\/pt\/framboesa-pi-pico-e-micropython-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\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\/pt\/framboesa-pi-pico-e-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=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"raspi berry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"28 minutos\" \/>\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\":\"pt-PT\",\"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\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-pico-and-micropython-on-windows\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@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\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@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\":\"pt-PT\",\"@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\\\/pt\\\/author\\\/raspi-berry\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi Pico e MicroPython no Windows | PiCockpit","description":"Um guia completo sobre MicroPython num Pi com Windows (7\/8\/10), incluindo instru\u00e7\u00f5es sobre como instalar e aceder \u00e0 porta s\u00e9rie do 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\/pt\/framboesa-pi-pico-e-micropython-on-windows\/","og_locale":"pt_PT","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\/pt\/framboesa-pi-pico-e-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":{"Escrito por":"raspi berry","Tempo estimado de leitura":"28 minutos"},"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":"pt-PT","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 e MicroPython no 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":"Um guia completo sobre MicroPython num Pi com Windows (7\/8\/10), incluindo instru\u00e7\u00f5es sobre como instalar e aceder \u00e0 porta s\u00e9rie do Pico.","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-pico-and-micropython-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"pt-PT","@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":"pt-PT"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@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":"baga de framboesa","image":{"@type":"ImageObject","inLanguage":"pt-PT","@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":"Estou aqui para ajud\u00e1-lo com todas as suas perguntas relacionadas com o Raspberry Pi e adoro compartilhar sobre novas id\u00e9ias de projetos para o Raspberry Pi, e dar dicas r\u00e1pidas. Claro que tamb\u00e9m o ajudarei com o PiCockpit e como tornar o seu Raspberry Pi ainda mais f\u00e1cil de usar com esta solu\u00e7\u00e3o de monitoriza\u00e7\u00e3o do raspberry Pi :-)","sameAs":["https:\/\/picockpit.com"],"url":"https:\/\/picockpit.com\/raspberry-pi\/pt\/author\/raspi-berry\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/comments?post=623"}],"version-history":[{"count":30,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":6202,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/posts\/623\/revisions\/6202"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/media\/6201"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/media?parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/categories?post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/pt\/wp-json\/wp\/v2\/tags?post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}