{"id":3483,"date":"2019-08-27T15:43:23","date_gmt":"2019-08-27T13:43:23","guid":{"rendered":"https:\/\/www.byor.nl\/?page_id=3483"},"modified":"2019-08-29T12:10:27","modified_gmt":"2019-08-29T10:10:27","slug":"mission-control-theme-coding-mission-1","status":"publish","type":"page","link":"https:\/\/www.byor.nl\/en\/mission-control-theme-coding-mission-1\/","title":{"rendered":"Mission Control | Theme Coding | Mission 1"},"content":{"rendered":"<style>\r\n.topshop-header-layout-standard {\r\n\tdisplay: none !important;\t\r\n}\r\n.site-footer {\r\n\tdisplay: none !important;\r\n}\r\n.customize-support {\r\nbackground-color:#000000 !important;\r\nbackground-size:100% !important;\r\nbackground: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 1)), url('http:\/\/byor.nl\/img\/missionbg.jpg');\r\n}\r\n.body {\r\nbackground-color:#000000 !important;\r\nbackground-size:100%;\r\n}\r\na:link {\r\n  color: #7e7ab9;\r\n  text-decoration: underline;\r\n}\r\na:visited {\r\n  color: #7e7ab9;\r\n  text-decoration: underline;\r\n}\r\na:hover {\r\n  color: #7cc9a0;\r\n}\r\n<\/style>\r\n<div class=\"full-width-div-no-head-foot-outer\">\r\n<div class=\"full-width-div-no-head-foot-inner\">\r\n<div style=\"position: fixed; right: 35px; top: 35px; color: #fff;\">Log in<\/div>\r\n<div class=\"roes-MC-title\"><img decoding=\"async\" style=\"width: 15%; min-width: 150px; margin-top: 35px; margin-bottom: -15px;\" src=\"http:\/\/byor.nl\/img\/MClogohalf.png\" \/>\r\n<h1 style=\"color: #fff; font-weight: bold; font-size: 50px; text-shadow: 2px 2px #939598;\">MISSION CONTROL<\/h1>\r\n<h4 style=\"color: #fff;\">Welcome to mission control, this theme will show you how to code your creations! You will need to have basic knowledge of the working of the BYOR-kit. You can get this knowledge by doing the first missions, about <a href=\"https:\/\/www.byor.nl\/en\/mission-control-start\/\" target=\"_new\">BYOR Basics<\/a>. For this mission you will need the BYOR starter-kit and the micro;bit chip.<br>\r\nStart the video below to hear the first transmission from the spaceship.<\/h4>\r\n<!-- https:\/\/maxl.us\/hideyt --><style>.hytPlayerWrap{display: inline-block; position: relative;}.hytPlayerWrap.ended::after{content:\"\"; position: absolute; top: 0; left: 0; bottom: 0; right: 0; cursor: pointer; background-color: black; background-repeat: no-repeat; background-position: center; background-size: 64px 64px; background-image: url(data:image\/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB2aWV3Qm94PSIwIDAgNTEwIDUxMCI+PHBhdGggZD0iTTI1NSAxMDJWMEwxMjcuNSAxMjcuNSAyNTUgMjU1VjE1M2M4NC4xNSAwIDE1MyA2OC44NSAxNTMgMTUzcy02OC44NSAxNTMtMTUzIDE1My0xNTMtNjguODUtMTUzLTE1M0g1MWMwIDExMi4yIDkxLjggMjA0IDIwNCAyMDRzMjA0LTkxLjggMjA0LTIwNC05MS44LTIwNC0yMDQtMjA0eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==);}.hytPlayerWrap.paused::after{content:\"\"; position: absolute; top: 70px; left: 0; bottom: 50px; right: 0; cursor: pointer; background-color: black; background-repeat: no-repeat; background-position: center; background-size: 40px 40px; background-image: url(data:image\/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNzA2LjY2NyIgaGVpZ2h0PSIxNzA2LjY2NyIgdmlld0JveD0iMCAwIDEyODAgMTI4MCI+PHBhdGggZD0iTTE1Ny42MzUgMi45ODRMMTI2MC45NzkgNjQwIDE1Ny42MzUgMTI3Ny4wMTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);}<\/style><div class=\"hytPlayerWrapOuter\"> <div class=\"hytPlayerWrap\"> <iframe loading=\"lazy\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/DPQ83YU27IM?rel=0&#038;enablejsapi=1\" frameborder=\"0\" ><\/iframe> <\/div><\/div><script>\"use strict\"; document.addEventListener('DOMContentLoaded', function(){if (window.hideYTActivated) return; let onYouTubeIframeAPIReadyCallbacks=[]; for (let playerWrap of document.querySelectorAll(\".hytPlayerWrap\")){let playerFrame=playerWrap.querySelector(\"iframe\"); let tag=document.createElement('script'); tag.src=\"https:\/\/www.youtube.com\/iframe_api\"; let firstScriptTag=document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); let onPlayerStateChange=function(event){if (event.data==YT.PlayerState.ENDED){playerWrap.classList.add(\"ended\");}else if (event.data==YT.PlayerState.PAUSED){playerWrap.classList.add(\"paused\");}else if (event.data==YT.PlayerState.PLAYING){playerWrap.classList.remove(\"ended\"); playerWrap.classList.remove(\"paused\");}}; let player; onYouTubeIframeAPIReadyCallbacks.push(function(){player=new YT.Player(playerFrame,{events:{'onStateChange': onPlayerStateChange}});}); playerWrap.addEventListener(\"click\", function(){let playerState=player.getPlayerState(); if (playerState==YT.PlayerState.ENDED){player.seekTo(0);}else if (playerState==YT.PlayerState.PAUSED){player.playVideo();}});}window.onYouTubeIframeAPIReady=function(){for (let callback of onYouTubeIframeAPIReadyCallbacks){callback();}}; window.hideYTActivated=true;});<\/script>\r\n<br>\r\n<!-- https:\/\/maxl.us\/hideyt --><style>.hytPlayerWrap{display: inline-block; position: relative;}.hytPlayerWrap.ended::after{content:\"\"; position: absolute; top: 0; left: 0; bottom: 0; right: 0; cursor: pointer; background-color: black; background-repeat: no-repeat; background-position: center; background-size: 64px 64px; background-image: url(data:image\/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB2aWV3Qm94PSIwIDAgNTEwIDUxMCI+PHBhdGggZD0iTTI1NSAxMDJWMEwxMjcuNSAxMjcuNSAyNTUgMjU1VjE1M2M4NC4xNSAwIDE1MyA2OC44NSAxNTMgMTUzcy02OC44NSAxNTMtMTUzIDE1My0xNTMtNjguODUtMTUzLTE1M0g1MWMwIDExMi4yIDkxLjggMjA0IDIwNCAyMDRzMjA0LTkxLjggMjA0LTIwNC05MS44LTIwNC0yMDQtMjA0eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==);}.hytPlayerWrap.paused::after{content:\"\"; position: absolute; top: 70px; left: 0; bottom: 50px; right: 0; cursor: pointer; background-color: black; background-repeat: no-repeat; background-position: center; background-size: 40px 40px; background-image: url(data:image\/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNzA2LjY2NyIgaGVpZ2h0PSIxNzA2LjY2NyIgdmlld0JveD0iMCAwIDEyODAgMTI4MCI+PHBhdGggZD0iTTE1Ny42MzUgMi45ODRMMTI2MC45NzkgNjQwIDE1Ny42MzUgMTI3Ny4wMTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);}<\/style><div class=\"hytPlayerWrapOuter\"> <div class=\"hytPlayerWrap\"> <iframe loading=\"lazy\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/x4GiTFwzdMw?rel=0&#038;enablejsapi=1\" frameborder=\"0\" ><\/iframe> <\/div><\/div><script>\"use strict\"; document.addEventListener('DOMContentLoaded', function(){if (window.hideYTActivated) return; let onYouTubeIframeAPIReadyCallbacks=[]; for (let playerWrap of document.querySelectorAll(\".hytPlayerWrap\")){let playerFrame=playerWrap.querySelector(\"iframe\"); let tag=document.createElement('script'); tag.src=\"https:\/\/www.youtube.com\/iframe_api\"; let firstScriptTag=document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); let onPlayerStateChange=function(event){if (event.data==YT.PlayerState.ENDED){playerWrap.classList.add(\"ended\");}else if (event.data==YT.PlayerState.PAUSED){playerWrap.classList.add(\"paused\");}else if (event.data==YT.PlayerState.PLAYING){playerWrap.classList.remove(\"ended\"); playerWrap.classList.remove(\"paused\");}}; let player; onYouTubeIframeAPIReadyCallbacks.push(function(){player=new YT.Player(playerFrame,{events:{'onStateChange': onPlayerStateChange}});}); playerWrap.addEventListener(\"click\", function(){let playerState=player.getPlayerState(); if (playerState==YT.PlayerState.ENDED){player.seekTo(0);}else if (playerState==YT.PlayerState.PAUSED){player.playVideo();}});}window.onYouTubeIframeAPIReady=function(){for (let callback of onYouTubeIframeAPIReadyCallbacks){callback();}}; window.hideYTActivated=true;});<\/script>\r\n\r\n&nbsp;\r\n<h1 style=\"color: #fff; font-weight: bold; font-size: 50px;\">Protocol Alpha<\/h1>\r\n<h4 style=\"color: #fff; margin-top: -25px;\">Turn on an output-part with brain power!<\/h4>\r\n<div class=\"roes-MC-block\">\r\n<h4 style=\"color: #7e7ab9;\">1. Connect the micro:bit <\/h4>\r\n<h5>Use the micro-USB cable to connect the micro:bit to your computer.<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/MB1.jpg\" \/><br>\r\n<h5 style=\"color: #231f20; margin-top: 25px;\">You will see it appear as you would a USB stick, later we will drag and drop code-files there.<\/h5>\r\n<h4 style=\"color: #7e7ab9;\">Connect an output part <\/h4>\r\n<h5>Get your Easyboard and connect an LED to output 13 (you can see the output-numbers on the bottom). We will make a code that will turn that LED on.<\/h5>\r\n<\/div>\r\n<div class=\"roes-MC-block\">\r\n<h4 style=\"color: #7e7ab9;\">2. Make a code!<\/h4>\r\n<h5>First we will make a code, it&#8217;s super easy and can be done online. Go to <a href=\"https:\/\/makecode.microbit.org\/#editor\" target=\"_new\">makecode.microbit.org\/#editor<\/a>, here we will do the programming, making the code which makes the chip think.<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/OverviewEditor.png\" \/>\r\n<br>\r\n<h5>Search for Digital Write in the searchbar and drag the Digital Write block to the Forever block. Make sure it snaps into the Forever block.<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%; max-width:500px;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/Step1.png\" \/><br>\r\n<h5> From the dropdown menu, select P13 and fill in the number 1 in the white box, so it resembles the image above.<\/h5>\r\n<br>\r\n<h4 style=\"color: #7e7ab9;\">Upload your code!<\/h4>\r\n<h5>Now save the files using the save-button. Save it onto te micro:bit drive. Wait a bit and the code is on the micro:bit. Attach the micro:bit to your Easyboard. Power the Easyboard and the LED will turn on. The brain is working!<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/MB2.jpg\" \/><br>\r\nNot working? Make sure the Easyboard has power and the connectors are all the way in. \r\nStill not working? Learn more in <a href=\"https:\/\/www.byor.nl\/en\/download\/BYORMBProgManualEnglishV1.pdf\/\" target=\"_new\">the programming manual<\/a>\r\n<\/div>\r\n\r\n<h1 style=\"color: #fff; font-weight: bold; font-size: 50px; margin-top: 25px;\">Protocol Bravo<\/h1>\r\n<h4 style=\"color: #fff; margin-top: -25px;\">Wait a second..<\/h4>\r\n\r\n<div class=\"roes-MC-block\">\r\n   <h4 style=\"color: #7e7ab9;\">Make a blinking light module<\/h4>\r\n  <h5>Now we are going to make the LED not just turn on, but also off, and on again, a blinking light! We will use the same block to turn the LED on (1) and off (0). While it is on, we want to chip to wait for a short period of time, we will use the Pause block of this.<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%; max-width:500px;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/Step2.png\" \/>\r\n<br>\r\n<h5>Add another Digital Write block to the Forever block and add two Pause blocks. Fill in the boxes to make it resemble the code shown above.<\/h5>\r\n\r\n<img decoding=\"async\" style=\"width: 80%;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/MB1.jpg\" \/>\r\n<h5>Attach the micro:bit to your computer again and save the file onto te micro:bit drive again. Wait a bit and the code is on the micro:bit. Attach the micro:bit to your Easyboard. Power the Easyboard and the LED will start blinking! Fill in different Pause times to make the led blink faster or slower.<\/h5>\r\n<\/div>\r\n\r\n<h1 style=\"color: #fff; font-weight: bold; font-size: 50px; margin-top: 25px;\">Protocol Charly<\/h1>\r\n<h4 style=\"color: #fff; margin-top: -25px;\">Different blinkers<\/h4>\r\n\r\n<div class=\"roes-MC-block\">\r\n   <h4 style=\"color: #7e7ab9;\">What more can we use?<\/h4>\r\n  <h5>Attach different output-parts to see how they respond to your code. What do you expect they will do? And do they?<\/h5>\r\n<h5>Using a blinking LED you can communicate whole words and sentences as well. This can be done using Morse code. With Morse code, timing is everything. You can make short or long blinks and it means different things. Look at the image below. Can you program the Easyboard in such a way that you can make the first letter of your name? Remember, the stripes take 3x longer than the dots.<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%; max-width:500px;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/International_Morse_Code.svg\" \/>\r\n<h5>Below is an example of code for the letter X (with a 10 seconde break at the end)<\/h5>\r\n<img decoding=\"async\" style=\"width: 80%; max-width:500px;\" src=\"https:\/\/www.byor.nl\/img\/MissionControlTheme2\/MorseX.png\" \/>\r\n<h5>Can you send us your name in Morse code? Build a cool device that does this using the LED or another output-part. Send us the video using the portal below \ud83d\ude42 <\/h5>\r\n<\/div>\r\n\r\n\r\n\r\n\r\n<div class=\"roes-MC-block\" style=\"background-color: #efeff7;\">\r\n<h1>Show us your creation!<\/h1>\r\n<h4>Be sure you are logged in to receive your space tokens!<\/h4>\r\n<h5>Log in<\/h5>\r\n<h4>Upload a video of your creation and send us the link!<\/h4>\r\n\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f3537-o1\" lang=\"nl-NL\" dir=\"ltr\" data-wpcf7-id=\"3537\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/wp-json\/wp\/v2\/pages\/3483\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Contactformulier\" novalidate=\"novalidate\" data-status=\"init\" data-trp-original-action=\"\/en\/wp-json\/wp\/v2\/pages\/3483#wpcf7-f3537-o1\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"3537\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.1\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"nl_NL\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f3537-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/>\n<\/fieldset>\n<h3 style=\"margin-top:0px; margin-bottom:0px;\">Your username\n<\/h3>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required roes-field\" id=\"roes-MC-field\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Your username, tokens will go to this user\" value=\"\" type=\"text\" name=\"your-name\" \/><\/span>\n<\/p>\n<h3 style=\"margin-top:0px; margin-bottom:3px;\">Your video\n<\/h3>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"url-106\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-url wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-url roes-field\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Paste your video-link here\" value=\"\" type=\"url\" name=\"url-106\" \/><\/span>\n<\/p>\n<p><span style=\"font-size:16px; margin-bottom:16px; margin-top:-20px;\">Upload your video through <a href=\"https:\/\/www.youtube.com\/\" target=\"_new\" style=\"text-decoration: underline;\" >Youtube<\/a>, <a href=\"https:\/\/vimeo.com\/\" target=\"_new\" style=\"text-decoration: underline;\">Vimeo<\/a> or social media!<\/span>\n<\/p>\n<p><input class=\"wpcf7-form-control wpcf7-submit has-spinner roes-button-style\" id=\"roes-form-button-MC\" type=\"submit\" value=\"Submit evidence and go!\" \/>\n<\/p><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n<\/div>\n\r\n<a href=\"https:\/\/www.byor.nl\/en\/mission-control-theme-coding-mission-2\/\">skip (you won&#8217;t receive tokens)<\/a>\r\n<\/div>\r\n<img decoding=\"async\" style=\"width: 15%; min-width: 150px; margin-top: 35px; margin-bottom: -15px;\" src=\"http:\/\/byor.nl\/img\/MCbadgeclose.png\" \/>\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"roes-MC-footer\">\r\n<div style=\"width: 60%; margin-left: auto; margin-right: auto;\">\r\n<div style=\"display: inline-block; width: 29%; min-width: 300px;\"><a href=\"https:\/\/www.nowyouknowchannel.com\/\" target=\"_new\"><img decoding=\"async\" style=\"width: 30%;\" src=\"https:\/\/www.byor.nl\/img\/NYKlogo.png\" \/><\/a><\/div>\r\n<div style=\"display: inline-block; width: 29%; vertical-align: top; padding-top: 30px; min-width: 300px;\">\r\n<h5>BYOR Mission Control\r\ninfo@byor.nl\r\n<a href=\"http:\/\/www.BYORcraft.com\">www.BYORcraft.com<\/a>\r\n<a href=\"http:\/\/www.nowyouknowchannel.com\">www.nowyouknowchannel.com<\/a><\/h5>\r\n<\/div>\r\n<div style=\"display: inline-block; width: 29%; min-width: 300px;\"><a href=\"https:\/\/www.byor.nl\/en\/\" target=\"_new\"><img decoding=\"async\" style=\"width: 60%; margin-left: 25px;\" src=\"https:\/\/www.byor.nl\/img\/missioncontrollogo.png\" \/>\r\n<\/a><\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>MISSION CONTROL Welcome to mission control, this theme will show you how to code your creations! You will need to have basic knowledge of the working of the BYOR-kit. You can get this knowledge by doing the first missions, about BYOR Basics. For this mission you will need the BYOR starter-kit and the micro;bit chip. [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"wf_page_folders":[69],"class_list":["post-3483","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/pages\/3483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/comments?post=3483"}],"version-history":[{"count":30,"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/pages\/3483\/revisions"}],"predecessor-version":[{"id":3569,"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/pages\/3483\/revisions\/3569"}],"wp:attachment":[{"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/media?parent=3483"}],"wp:term":[{"taxonomy":"wf_page_folders","embeddable":true,"href":"https:\/\/www.byor.nl\/en\/wp-json\/wp\/v2\/wf_page_folders?post=3483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}