{"id":2413,"date":"2021-01-31T11:10:04","date_gmt":"2021-01-31T10:10:04","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=2413"},"modified":"2021-04-04T09:20:18","modified_gmt":"2021-04-04T07:20:18","slug":"a-simple-arduino-framework-for-the-new-raspberry-pico","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/","title":{"rendered":"A simple Arduino Framework for the new Raspberry Pico"},"content":{"rendered":"<p>On Friday I was receiving my <a href=\"https:\/\/www.raspberrypi.org\/documentation\/pico\/getting-started\/\">Raspberry PI Pico<\/a> and I had the opportunity to play around with it. Actually most of the time I spent reading the Manuals&#8230; The conclusion: <strong>interesting<\/strong> &#8211; but a little bit too complicated to use &#8211; So I was quite happy to read that <a href=\"https:\/\/blog.arduino.cc\/2021\/01\/20\/welcome-raspberry-pi-to-the-world-of-microcontrollers\/\">Arduino plans to add an official support<\/a> for this Microcontroller.<\/p>\n<p>I am also missing a built in DAC and I2S support though.<\/p>\n<p>From my point of view the new Pico shines in the following areas<\/p>\n<ul>\n<li>The <strong>documentation<\/strong> is quite extensive<\/li>\n<li>The <strong>PIO<\/strong> allows the implementation of new functionality which is not supported yet (e.g. I2S)<\/li>\n<li>The board has a <strong>programmable USB<\/strong> and can act as USB host or USB device!<\/li>\n<\/ul>\n<p>However I did not want to wait for the official Arduino implementation to be available, so as a temporary solution, I decided to make <strong>my own Arduino API<\/strong> available as a separate project.<\/p>\n<h2>Design goals<\/h2>\n<ul>\n<li>Provide a <strong>full implementation of the Arduino API<\/strong> <\/li>\n<li>Provide additional <strong>easy to use C++ classes<\/strong> for the functionality which is <strong>specific to the Pico<\/strong><\/li>\n<li>Keep the pico specific build process using <strong>cmake<\/strong><\/li>\n<li>Option to <strong>use this project just as additional cmake library<\/strong><\/li>\n<li>Support of <strong>existing Arduino Libraries<\/strong><\/li>\n<li>Provide a complete set of <strong>examples<\/strong><\/li>\n<\/ul>\n<p>After one and a half days of work, I am quite happy with the result. You can find <a href=\"https:\/\/github.com\/pschatzmann\/pico-arduino\">this project on Github<\/a>.<\/p>\n<p>As a next step I am wondering if I manage to implement SPI in order to use e.g. the Arduino SD disk framework&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Friday I was receiving my Raspberry PI Pico and I had the opportunity to play around with it. Actually most of the time I spent reading the Manuals&#8230; The conclusion: interesting &#8211; but a little bit too complicated to use &#8211; So I was quite happy to read that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2416,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20,24],"tags":[],"class_list":["post-2413","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-pico"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann<\/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:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"On Friday I was receiving my Raspberry PI Pico and I had the opportunity to play around with it. Actually most of the time I spent reading the Manuals&#8230; The conclusion: interesting &#8211; but a little bit too complicated to use &#8211; So I was quite happy to read that [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-31T10:10:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-04T07:20:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2021\/01\/pico.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"266\" \/>\n\t<meta property=\"og:image:height\" content=\"190\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"A simple Arduino Framework for the new Raspberry Pico\",\"datePublished\":\"2021-01-31T10:10:04+00:00\",\"dateModified\":\"2021-04-04T07:20:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/\"},\"wordCount\":266,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/pico.jpeg\",\"articleSection\":[\"Arduino\",\"Pico\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/\",\"name\":\"A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/pico.jpeg\",\"datePublished\":\"2021-01-31T10:10:04+00:00\",\"dateModified\":\"2021-04-04T07:20:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/pico.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/pico.jpeg\",\"width\":266,\"height\":190},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/01\\\/31\\\/a-simple-arduino-framework-for-the-new-raspberry-pico\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A simple Arduino Framework for the new Raspberry Pico\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann","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:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/","og_locale":"en_US","og_type":"article","og_title":"A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann","og_description":"On Friday I was receiving my Raspberry PI Pico and I had the opportunity to play around with it. Actually most of the time I spent reading the Manuals&#8230; The conclusion: interesting &#8211; but a little bit too complicated to use &#8211; So I was quite happy to read that [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/","og_site_name":"Phil Schatzmann","article_published_time":"2021-01-31T10:10:04+00:00","article_modified_time":"2021-04-04T07:20:18+00:00","og_image":[{"width":266,"height":190,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2021\/01\/pico.jpeg","type":"image\/jpeg"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"A simple Arduino Framework for the new Raspberry Pico","datePublished":"2021-01-31T10:10:04+00:00","dateModified":"2021-04-04T07:20:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/"},"wordCount":266,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2021\/01\/pico.jpeg","articleSection":["Arduino","Pico"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/","url":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/","name":"A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2021\/01\/pico.jpeg","datePublished":"2021-01-31T10:10:04+00:00","dateModified":"2021-04-04T07:20:18+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2021\/01\/pico.jpeg","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2021\/01\/pico.jpeg","width":266,"height":190},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/01\/31\/a-simple-arduino-framework-for-the-new-raspberry-pico\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"A simple Arduino Framework for the new Raspberry Pico"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/2413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=2413"}],"version-history":[{"count":11,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/2413\/revisions"}],"predecessor-version":[{"id":2802,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/2413\/revisions\/2802"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/2416"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=2413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=2413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=2413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}