{"id":15,"date":"2020-12-21T21:34:04","date_gmt":"2020-12-21T21:34:04","guid":{"rendered":"https:\/\/integrate.blogs.glowscotland.org.uk\/ula3\/embeds\/?p=15"},"modified":"2024-06-13T21:00:36","modified_gmt":"2024-06-13T20:00:36","slug":"microbit","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/21\/microbit\/","title":{"rendered":"Micro:bit"},"content":{"rendered":"\n<p>You can show different views of a published micro:bit project in the <a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/23\/microbit-code\/\">code<\/a> view, editor or simulator&nbsp;(links to more example embeds)<\/p>\n\n\n\n<p>Glow blogs uses a special shortcode to show the code:<\/p>\n\n\n\n<p>[glowmicrobit url=\"_MicrobitCode\" code] where <strong>_MicrobitCode<\/strong> is the last slug of the url. To get the code you need to:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Share your microbit project,<\/li>\n\n\n\n<li>Publish it<\/li>\n\n\n\n<li>copy the url &nbsp;for example:&nbsp;<em>https:\/\/makecode.microbit.org\/_gww1kCPdL5od<\/em><\/li>\n\n\n\n<li>use the last section in the glowmicrobit shortcode: [glowmicrobit url=\"_gww1kCPdL5od\" simulator] adding simulator, &nbsp;code or editor depending on which url you want to show.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon.png\"><img loading=\"lazy\" decoding=\"async\" width=\"454\" height=\"154\" data-attachment-id=\"496\" data-permalink=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/21\/microbit\/microbit-share-icon\/\" data-orig-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon.png\" data-orig-size=\"454,154\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"microbit-share-icon\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;1. Click the Share icon&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon-300x102.png\" data-large-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon.png\" data-id=\"496\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon.png\" alt=\"\" class=\"wp-image-496\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon.png 454w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142630\/microbit-share-icon-300x102.png 300w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/a><figcaption class=\"wp-element-caption\">1. Click the Share icon<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" data-attachment-id=\"498\" data-permalink=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/21\/microbit\/microbit-publish-project\/\" data-orig-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project.png\" data-orig-size=\"1368,610\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"microbit-publish-project\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;2. Name &amp;amp; publish project&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project-300x134.png\" data-large-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project-1024x457.png\" data-id=\"498\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project-1024x457.png\" alt=\"\" class=\"wp-image-498\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project-1024x457.png 1024w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project-300x134.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project-768x342.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142634\/microbit-publish-project.png 1368w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">2. Name &amp; publish project<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"458\" data-attachment-id=\"497\" data-permalink=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/21\/microbit\/microbit-share-url\/\" data-orig-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url.png\" data-orig-size=\"1356,606\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"microbit-share-url\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;3. Copy url&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url-300x134.png\" data-large-file=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url-1024x458.png\" data-id=\"497\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url-1024x458.png\" alt=\"\" class=\"wp-image-497\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url-1024x458.png 1024w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url-300x134.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url-768x343.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/embeds\/uploads\/sites\/9301\/2020\/12\/07142631\/microbit-share-url.png 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">3. Copy url<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>Here is what you will get:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Simulator<\/h2>\n\n\n\n<p class=\"has-background\" style=\"background-color:#ffff00\">NB there is a problem with the micro:bit embed code for the simulator.  We are awaiting a fix from micro:bit.  For now we recommend using the editor version. On the editor the play button will show the simulator correctly.<\/p>\n\n\n\n<p>[glowmicrobit url=\"_gww1kCPdL5od\" simulator] gives:<\/p>\n\n\n<div style='position:relative;height:0;padding-bottom:81.97%;overflow:hidden;'><iframe style='position: absolute; top: 0; left: 0; width: 100%; height: 100%;'  src='https:\/\/makecode.microbit.org\/---run?id=69362-76330-54511-95403' frameBorder='0' sandbox='allow-popups allow-forms allow-scripts allow-same-origin' ><\/iframe><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Editor<\/h2>\n\n\n\n<p>[glowmicrobit url=\"_gww1kCPdL5od\" editor] gives:<\/p>\n\n\n<div style='position:relative;height:0;padding-bottom:70%;overflow:hidden;'><iframe style='position: absolute; top: 0; left: 0; width: 100%; height: 100%;'  src='https:\/\/makecode.microbit.org\/#pub:69362-76330-54511-95403' frameBorder='0' sandbox='allow-popups allow-forms allow-scripts allow-same-origin' ><\/iframe><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Code<\/h2>\n\n\n\n<p>[glowmicrobit url=\"69362-76330-54511-95403\" code] gives:<\/p>\n\n\n<div style='position:relative;height:calc(300px + 5em);width:100%;overflow:hidden;'><iframe style='position: absolute; top: 0; left: 0; width: 100%; height: 100%;'  src='https:\/\/makecode.microbit.org\/---codeembed#pub:69362-76330-54511-95403' allowfullscreen='allowfullscreen' frameBorder='0' sandbox='allow-scripts allow-same-origin' ><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can show different views of a published micro:bit project in the code view, editor or simulator&nbsp;(links to more example embeds) Glow blogs uses a special shortcode to show the code: where _MicrobitCode is the last slug of the url. To get the code you need to: Here is what you will get: Simulator NB &hellip; <a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/21\/microbit\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Micro:bit<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-shortcode"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":10,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":603,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts\/15\/revisions\/603"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}