{"id":208,"date":"2021-04-09T15:34:52","date_gmt":"2021-04-09T14:34:52","guid":{"rendered":"https:\/\/www.slowergram.com\/?p=208"},"modified":"2021-04-10T08:29:13","modified_gmt":"2021-04-10T07:29:13","slug":"8-seconds-of-a-flashing-led-using-raspberrypi-pico","status":"publish","type":"post","link":"https:\/\/www.slowergram.com\/index.php\/2021\/04\/09\/8-seconds-of-a-flashing-led-using-raspberrypi-pico\/","title":{"rendered":"8 seconds of a flashing LED using #RaspberryPi #pico"},"content":{"rendered":"\n<p>Starting our Easter holiday coding sessions simple, using a Raspberry Pi Pico to flash an LED using MicroPython via Thonny on a RPi4<\/p>\n\n\n\n<p>Started with a bit of a stumbling block as wrongly assumed the breadboard ports on the Pimoroni Pico explorer ran horizontal but they actually run vertically!<\/p>\n\n\n\n<p>Once components had been switched (and also the LED anode the right way round) we had a simple flashing LED. <\/p>\n\n\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"8 seconds of a flashing LED #pico\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/8rxF0gBBK7Q?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>This was the code we used&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from machine import Pin\nimport utime\nled = Pin(4, Pin.OUT)\nled.low()\nwhile True:\n    led.toggle()\n    print(\"Flash\")\n    utime.sleep(1)<\/code><\/pre>\n\n\n\n<p>Thrilling isn&#8217;t it \ud83d\ude04<\/p>\n\n\n\n<p>Circuit as follows:<\/p>\n\n\n\n<p>GND to 330 ohm resistor <\/p>\n\n\n\n<p>330 ohn resistor to LED cathode<\/p>\n\n\n\n<p>LED anode to Pico GP4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starting our Easter holiday coding sessions simple, using a Raspberry Pi Pico to flash an LED using MicroPython via Thonny on a RPi4 Started with a bit of a stumbling block as wrongly assumed the breadboard ports on the Pimoroni Pico explorer ran horizontal but they actually run vertically! Once <a href=\"https:\/\/www.slowergram.com\/index.php\/2021\/04\/09\/8-seconds-of-a-flashing-led-using-raspberrypi-pico\/\" class=\"btn btn-link continue-link\">Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[31],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-rpi"],"_links":{"self":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":0,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slowergram.com\/index.php\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}