 So you got yourself one of these a BBC micro bit and now you want to program it using Microsoft make code We'll stick around because in this tutorial of our micro bit basic series We're going to explore the make code website how it saves our code and how we can download our program to the micro bit in just a moment Hello, well, it's the surfing scratcher here teacher surfer programmer and lover of learning bringing you the goodness of learning through code This channel we code projects together using video tutorials So if you're new here consider subscribing be sure to check out the show notes and links in the description below We're out list out a bunch of resources and unplugged activities that can help you along on your learning journey. All right Let's get stuck into it. All right, so to program our micro bit We need head over to the make code editor and to do that We're just going to go to Google and type in make code micro bit and click on the first hit That'll take us to the Microsoft micro bit make code editor and to get started. We will just press this new project So here we are in the make code editor. The first thing that we're going to do is just give a name for our new project Let's now walk through the various elements of this editor The most obvious starting point is probably over here where you can see a simulated version of a micro bit It works just like the micro bit that you have at your place or that you're planning to get You can click the buttons. You can click the pins as well You can also simulate some of the other aspects of the micro bit such as the radio communication It allows you to emulate sensory data and user interactions. I encourage you to go through and explore what these buttons are If you just mouse over them, I'll tell you exactly what they do. Okay up the top here You'll find a link to the micro bit page Another link here You'll press this share link if you want to share your project and that will publicly store on the Microsoft Cloud you can also switch between our block editor and our JavaScript editor here Which is pretty neat if you're transitioning from more of a block style of programming to a text-based programming language Okay, if you ever get stuck make sure you jump through here in the reference and support heaps of good stuff And you can also adjust some of your settings. All right so this area here is reserved for our blocks or our JavaScript and This central column is where we can flip through all the different categories pretty similar to scratch and check out the Things that we can code if you're ever confused about what the code block does I want you to right-click on it and go help and that'll pop out this help window here And that will tell you give you a little bit more information about what that code block actually does highly recommend it So an event that runs when the program starts the on start is a special event that runs when the program starts before any Other event use this event to initialize your program So it's just like at the green flag press in scratch if you're familiar with scratch. All right, let's close this Okay, so let's check some simple text in there to see what's going on here So we're going to show some strings some text a string is just a word for another name for a text value So let's stick that in now on a start block and when we start let's just go hello world Right, so if I go ahead and click the simulator over here. It's already done it for us It's going through and you're showing that text hello world Now you might want to go ahead and put your name in here I'm gonna go ahead and put mine right there surfing scratcher. So it'll start and now it says surfing scratcher All right now Let's just have a quick look at these buttons before we move on to how to save this project So they press input. I've got this on button press. So let's drag one of those out I'm going to go on button a press. Let's jump back over to our basic methods our basic blocks And we're just going to get some icons here It's just to sort of test them out and the icons refer to Lighting up these LEDs right here. We've got a heart We can go through and just scroll through the ones that are all built in there So I'm going to click that heart and if I go through on the simulator here And I press the a the heart should show after Surfing scratcher has finished here. There it is right there So we can go ahead and duplicate by right-clicking and instead of our heart we can go The button B. Let's show a different icon. Let's show this little duck here So I'm a bit annoyed with this show surfing scratcher So I'm just gonna get rid of that now and let's restart our simulator. Cool So I'm gonna press button a see how it's great the moment means I can't press it. All right There's our heart and there's our duck Which is pretty neat. There's a third button press where you can press both buttons at the same time and You can do that by going A and B. You'll see that what happened over the simulator a third button came up here And that's the A and B press. So let's just go ahead and change that icon Let's do this big kind of X-looking shape Press the A and B and there it is up on the screen as you're working on your project It automatically saves to your browser's local storage. What on earth does that mean? Well, if I press this home button now, it's gonna take us back to that home page And you'll see here We've got an extra rectangle here that is the name of the projector that we named for out there first project Just make her for micro bit for go inside of there and take us exactly back to where we just were a word of caution on the browser's local storage So it save there until it's cleared anyone who uses your computer will have access to your project Perhaps a better way to save your micro bit project is to go ahead and download it Which is what I've done here. I've just gone and downloaded my File, let's go and find it now. Okay. So here I am on my downloads folder and we can see here It's giving us this .hex file, right? You can go ahead and save this file anywhere that you'd like to be on a USB stick can be in a folder on your hard drive Anyway, so what we need to do now is connect our micro bit Okay, so I've just gone ahead and connected the micro bit and it has popped up here in our side window So I'm gonna go ahead and click it So when you want to transfer your code from make code editor on to the actual micro bit This is what you need to do you need to take that hex file and you need to open up the micro bit That is now plugged in and it's just plugged in through my USB port I'm gonna go ahead and drag that hex file directly onto the micro bit and now it's transferring across There we go. It automatically says that the disk is not ejected properly and that's exactly what should happen All right, so we've got the real micro bit in action here. We press the A button We get the heart we press that B button up comes the duck and then when we press both buttons together A and B Here comes our X. Boom Just remember your micro bit will need to be plugged into a computer or battery powered for it to work Cool, so that's been our intro to the made code editor We will be unpacking loads more in future videos All right, it's time for a Cody question and I want to know what do you use to code your micro bit? Are you in Python? Are you using make-code editor using JavaScript or the block editor? You might even be using scratch or something. I haven't even mentioned drop an answer in the comment section below Hey, thanks for checking out this tutorial subscribe like and ring the bell if you're new around here And be sure to have a scout of some of my other content which is on the screen right now If you can't get enough then head on over to my patreon page Where you can join a membership tier for access to exclusive content link in the description below? But until then I'm off to go find a wave. I'll catch in the next one