{"id":355,"date":"2026-05-06T12:33:17","date_gmt":"2026-05-06T12:33:17","guid":{"rendered":"https:\/\/aadhuniklabs.com\/casp-blog\/?p=355"},"modified":"2026-05-07T09:22:52","modified_gmt":"2026-05-07T09:22:52","slug":"casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc","status":"publish","type":"post","link":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/","title":{"rendered":"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python"},"content":{"rendered":"\n<p class=\"\">This example demonstrates how to read\/write GPIO pin values of Raspberry Pi Pico board (connected to the host computer through serial port) using a Python script on the host computer. Even through this test example uses Raspberry Pi Pico board, same procedure can be adopted for other Pico series micro-controller boards supported by CASP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pre-Requisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Raspberry Pi Pico board with a USB cable.<\/li>\n\n\n\n<li class=\"\">CASP software is installed along with CASP Python Libraries.<\/li>\n\n\n\n<li class=\"\">Raspberry Pi Pico BSP is installed.<\/li>\n\n\n\n<li class=\"\">The project files are located at CASP installed directory \u2018CASP\/support\/examples\/casp_gpio_examples\/rpi_pico_series_boards\/casp_gpio_pico_serial\u2019. These are also available for download at this <a href=\"https:\/\/aadhuniklabs.com\/casp\/casp_web_examples\/casp_gpio_examples\/rpi_pico_series_boards\/casp_gpio_pico_serial.zip\">link<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Programming the Board<\/h2>\n\n\n\n<p class=\"\">Before starting this example, the target board should be programmed with binary file that enables CASP GPIO communication protocol. Please follow below steps to program the target board with the binary file that enables CASP GPIO communication protocol.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Connect Raspberry Pi Pico board to the USB of the computer<\/li>\n\n\n\n<li class=\"\">Run CASP and click on Tools &gt; Programmer<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"381\" height=\"115\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image001-2.jpg?fit=381%2C115&amp;ssl=1\" alt=\"\" class=\"wp-image-281\" srcset=\"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image001-2.jpg?w=381&amp;ssl=1 381w, https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image001-2.jpg?resize=300%2C91&amp;ssl=1 300w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">It opens a programmer dialog box. Set board as RaspberryPi_Pico, programmer as Programme0, select serial port to which the board is connected and select the binary file from CASP installed directory \u2018CASP\/support\/examples\/casp_gpio_examples\/rpi_pico_series_boards\/casp_gpio_pico_serial\/bin\/casp_gpio_pico.uf2\u2019<\/li>\n\n\n\n<li class=\"\">Click \u2019Program\u2019 button to program the board with the above selected binary file. Screen shot is shown below.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"715\" height=\"457\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image002-2.jpg?fit=715%2C457&amp;ssl=1\" alt=\"\" class=\"wp-image-313\" srcset=\"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image002-2.jpg?w=715&amp;ssl=1 715w, https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image002-2.jpg?resize=300%2C192&amp;ssl=1 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Accessing GPIO from Python<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Close existing CASP program.<\/li>\n\n\n\n<li class=\"\">Open terminal in directory \u2018CASP\/support\/examples\/casp_gpio_examples\/rpi_pico_series_boards\/casp_gpio_pico_serial\/python\u2019.<\/li>\n\n\n\n<li class=\"\">Start Python by typing \u2018Python\u2019 or \u2018Python3\u2019 in the terminal. Type following commands in Python to access GPIO values from the target board<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; import casp_gpio as casp #import CASP GPIO module\n\n&gt; import casp_gpio_pins as pins #import CASP GPIO Raspberry Pi Pico pin description module \u2018casp_gpio_pins.py\u2019 located in the same directory where the terminal is running\n\n&gt; casp.Init() #initialize CASP GPIO client process on host computer\n\n&gt; casp_gpio.SerialPorts() #display available serial ports (used to identify the serial port to which the board is connected)\n\n&gt; casp.ConnectSerial(\"COM34\") #starts communicating with the target board using GPIO protocol on COM35. Change the serial port as per your setup.\n\n&gt; casp.Write(pins.DO_GP_LED, 1) #LED ON\n\n&gt; casp.Write(pins.DO_GP_LED, 0) #LED OFF\n\n&gt; casp.Read(pins.ADC_GP26) #Read ADC value from pin-GP26\n\n&gt; casp.Read(pins.DI_GP0) #Read digital input pin GP0 value\n\n&gt; casp.Write(pins.PWM_GP16, 500) #Writes PWM value 500 (range 0 to 1000) to pin-GP16\n\n&gt; casp.Write(pins.SERVO_GP10, 45) #Writes servo angle 45 (range -90 to 90) to pin-GP10<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">&nbsp;Below is the screen shot of above commands. You may try other pins from \u2018casp_gpio_pins.py\u2019<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"980\" height=\"533\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image008-2.jpg?fit=980%2C533&amp;ssl=1\" alt=\"\" class=\"wp-image-360\" srcset=\"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image008-2.jpg?w=980&amp;ssl=1 980w, https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image008-2.jpg?resize=300%2C163&amp;ssl=1 300w, https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/image008-2.jpg?resize=768%2C418&amp;ssl=1 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Related Links<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\"><a href=\"https:\/\/aadhuniklabs.com\/casp-blog\/installing-casp\/\" target=\"_blank\" rel=\"noreferrer noopener\">Installing CASP<\/a><\/li>\n\n\n\n<li class=\"\"><a href=\"https:\/\/aadhuniklabs.com\/casp-blog\/updating-casp\/\" target=\"_blank\" rel=\"noreferrer noopener\">Updating CASP<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This example demonstrates how to read\/write GPIO pin values of Raspberry Pi Pico board (connected to the host computer through serial port) using a Python script on the host computer.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":585,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_view_id":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[26,58],"tags":[59,65,47,48,39],"post_folder":[19],"class_list":["post-355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-getting-started","category-test-examples","tag-getting-started","tag-gpio","tag-python","tag-python-gpio","tag-raspberry-pi-pico"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python - CASP Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python - CASP Blog\" \/>\n<meta property=\"og:description\" content=\"This example demonstrates how to read\/write GPIO pin values of Raspberry Pi Pico board (connected to the host computer through serial port) using a Python script on the host computer.&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/\" \/>\n<meta property=\"og:site_name\" content=\"CASP Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-06T12:33:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-07T09:22:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"AadhunikLabs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"AadhunikLabs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/\"},\"author\":{\"name\":\"AadhunikLabs\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/#\\\/schema\\\/person\\\/4b27a4300337e4cc03b790befda00fe7\"},\"headline\":\"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python\",\"datePublished\":\"2026-05-06T12:33:17+00:00\",\"dateModified\":\"2026-05-07T09:22:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/\"},\"wordCount\":326,\"image\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/aadhuniklabs.com\\\/casp-blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/test07b-1.jpg?fit=1366%2C768&ssl=1\",\"keywords\":[\"Getting Started\",\"GPIO\",\"Python\",\"Python GPIO\",\"Raspberry Pi Pico\"],\"articleSection\":[\"Getting Started\",\"Test Examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/\",\"url\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/\",\"name\":\"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python - CASP Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/aadhuniklabs.com\\\/casp-blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/test07b-1.jpg?fit=1366%2C768&ssl=1\",\"datePublished\":\"2026-05-06T12:33:17+00:00\",\"dateModified\":\"2026-05-07T09:22:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/#\\\/schema\\\/person\\\/4b27a4300337e4cc03b790befda00fe7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/aadhuniklabs.com\\\/casp-blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/test07b-1.jpg?fit=1366%2C768&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/aadhuniklabs.com\\\/casp-blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/test07b-1.jpg?fit=1366%2C768&ssl=1\",\"width\":1366,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/#website\",\"url\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/\",\"name\":\"CASP Blog\",\"description\":\"Let&#039;s make for fun\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/#\\\/schema\\\/person\\\/4b27a4300337e4cc03b790befda00fe7\",\"name\":\"AadhunikLabs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b348f13bedc8e57284f8f80aa91d9d3d76f31f93a663f5f5dd7cf3fdeb9a321c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b348f13bedc8e57284f8f80aa91d9d3d76f31f93a663f5f5dd7cf3fdeb9a321c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b348f13bedc8e57284f8f80aa91d9d3d76f31f93a663f5f5dd7cf3fdeb9a321c?s=96&d=mm&r=g\",\"caption\":\"AadhunikLabs\"},\"sameAs\":[\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\"],\"url\":\"https:\\\/\\\/aadhuniklabs.com\\\/casp-blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python - CASP Blog","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:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/","og_locale":"en_US","og_type":"article","og_title":"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python - CASP Blog","og_description":"This example demonstrates how to read\/write GPIO pin values of Raspberry Pi Pico board (connected to the host computer through serial port) using a Python script on the host computer.&hellip;","og_url":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/","og_site_name":"CASP Blog","article_published_time":"2026-05-06T12:33:17+00:00","article_modified_time":"2026-05-07T09:22:52+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg","type":"image\/jpeg"}],"author":"AadhunikLabs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"AadhunikLabs","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#article","isPartOf":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/"},"author":{"name":"AadhunikLabs","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/#\/schema\/person\/4b27a4300337e4cc03b790befda00fe7"},"headline":"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python","datePublished":"2026-05-06T12:33:17+00:00","dateModified":"2026-05-07T09:22:52+00:00","mainEntityOfPage":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/"},"wordCount":326,"image":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg?fit=1366%2C768&ssl=1","keywords":["Getting Started","GPIO","Python","Python GPIO","Raspberry Pi Pico"],"articleSection":["Getting Started","Test Examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/","url":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/","name":"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python - CASP Blog","isPartOf":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#primaryimage"},"image":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg?fit=1366%2C768&ssl=1","datePublished":"2026-05-06T12:33:17+00:00","dateModified":"2026-05-07T09:22:52+00:00","author":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/#\/schema\/person\/4b27a4300337e4cc03b790befda00fe7"},"breadcrumb":{"@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#primaryimage","url":"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg?fit=1366%2C768&ssl=1","contentUrl":"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg?fit=1366%2C768&ssl=1","width":1366,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/casp-accessing-raspberry-pi-pico-gpio-pins-from-python-on-host-pc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/aadhuniklabs.com\/casp-blog\/"},{"@type":"ListItem","position":2,"name":"Test Example-7b: Accessing Raspberry Pi Pico GPIO Pins from Python"}]},{"@type":"WebSite","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/#website","url":"https:\/\/aadhuniklabs.com\/casp-blog\/","name":"CASP Blog","description":"Let&#039;s make for fun","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aadhuniklabs.com\/casp-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/aadhuniklabs.com\/casp-blog\/#\/schema\/person\/4b27a4300337e4cc03b790befda00fe7","name":"AadhunikLabs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b348f13bedc8e57284f8f80aa91d9d3d76f31f93a663f5f5dd7cf3fdeb9a321c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b348f13bedc8e57284f8f80aa91d9d3d76f31f93a663f5f5dd7cf3fdeb9a321c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b348f13bedc8e57284f8f80aa91d9d3d76f31f93a663f5f5dd7cf3fdeb9a321c?s=96&d=mm&r=g","caption":"AadhunikLabs"},"sameAs":["https:\/\/aadhuniklabs.com\/casp-blog"],"url":"https:\/\/aadhuniklabs.com\/casp-blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/aadhuniklabs.com\/casp-blog\/wp-content\/uploads\/2026\/05\/test07b-1.jpg?fit=1366%2C768&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":8,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/posts\/355\/revisions\/621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/media\/585"}],"wp:attachment":[{"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/tags?post=355"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/aadhuniklabs.com\/casp-blog\/wp-json\/wp\/v2\/post_folder?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}