{"id":16876,"date":"2021-09-26T20:30:40","date_gmt":"2021-09-27T00:30:40","guid":{"rendered":"https:\/\/scruss.com\/blog\/?p=16876"},"modified":"2021-10-24T18:28:35","modified_gmt":"2021-10-24T22:28:35","slug":"another-raspberry-pi-pico-language-mmbasic","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2021\/09\/26\/another-raspberry-pi-pico-language-mmbasic\/","title":{"rendered":"Another Raspberry Pi Pico language: MMBasic"},"content":{"rendered":"\n<p>It&#8217;s very much a work in progress, but Geoff Graham and Peter Mather&#8217;s <a href=\"https:\/\/mmbasic.com\/\">MMBasic<\/a> runs nicely on the Raspberry Pi Pico. Development is mostly coordinated on <a href=\"https:\/\/www.thebackshed.com\/forum\/ActiveTopics.php\">TheBackShed.com<\/a> forum.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Download and manual: <a href=\"https:\/\/geoffg.net\/picomite.html\">Geoff&#8217;s Projects &#8211; BASIC Interpreter for the Raspberry Pi Pico<\/a><\/li><li>Source: <a href=\"https:\/\/github.com\/UKTailwind\/PicoMite\">MMBasic running on the Raspberry Pi Pico<\/a><\/li><\/ul>\n\n\n\n<p>It supports an impressive range of displays and peripherals. The project gives me a very distinct &#8220;This is how we do things&#8221; vibe, and it&#8217;s quite unlike any other Raspberry Pi Pico project.<\/p>\n\n\n\n<p>To show you what MMBasic code looks like, here&#8217;s a little demo that uses one of those &#8220;Open Smart&#8221; LED traffic lights on physical pins 14-16 which cycles through the phases every few seconds:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: vb; title: ; notranslate\" title=\"\">\n&#039; traffic light on gp10-12 (green, yellow, red), pins 14-16\n\n&#039; set up ports for output\nFOR i=14 TO 16\n  SETPIN i, DOUT\n  PIN(i)=0\nNEXT i\n\nred=16\namber=15\ngreen=14\n\nDO\n  &#039; green on for 5 seconds\n  PIN(red)=0\n  PIN(green)=1\n  PAUSE 5000\n  &#039; amber on for 3 seconds\n  PIN(green)=0\n  PIN(amber)=1\n  PAUSE 3000\n  &#039; red on for 5 seconds\n  PIN(amber)=0\n  PIN(red)=1\n  PAUSE 5000\nLOOP\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>It&#8217;s very much a work in progress, but Geoff Graham and Peter Mather&#8217;s MMBasic runs nicely on the Raspberry Pi Pico. Development is mostly coordinated on TheBackShed.com forum. Download and manual: Geoff&#8217;s Projects &#8211; BASIC Interpreter for the Raspberry Pi Pico Source: MMBasic running on the Raspberry Pi Pico It supports an impressive range of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[2062,3258,2510],"class_list":["post-16876","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-basic","tag-pico","tag-raspberrypi"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-4oc","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/16876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=16876"}],"version-history":[{"count":2,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/16876\/revisions"}],"predecessor-version":[{"id":16886,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/16876\/revisions\/16886"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=16876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=16876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=16876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}