Difference between revisions of "Microbit Trainer Training"

From Wikicliki
Jump to: navigation, search
Line 53: Line 53:
 
== Create variables ==
 
== Create variables ==
  
=== Simple Counter ==
+
=== Simple Counter ===
  
 
[[File:setvariable.png|400px]]
 
[[File:setvariable.png|400px]]
Line 63: Line 63:
  
 
=== Randomiser ===
 
=== Randomiser ===
 +
 +
[[File:setmaths.png|400px]]
 +
 +
[[File:setvariable2.png|800px]]
 +
 +
[[File:setvariable3.png|800px]]

Revision as of 02:35, 7 September 2018

Visual Programming with Micro:bit, Tinkercademy, 7 Sept 2018

Microbit.png

  • Use Google Chrome for this: https://makecode.microbit.org/
  • This is called Block programming. You need to "snap" the part in (if audio is on, it will make a snap sound).
  • You can also use the javascript if you want to code directly.
  • Start with Forever block and plug in different blocks, such as Show Number, Show LED.
  • Then try using the buttons..

Microbitmakecode.png

Makecode1.png

Microbitlive1.jpg

Makecode3.png Makecode4.png

  • Keep the forever block
  • Good practice is to load something into on start so that you know if it is working and not a hardware issue.

Let's use the LEDs! Default values, or manually plotting X & Y Axis

Plotled0.png

Plotled1.png Plotled2.png Plotled3.png

Inputs

Step 1

Microbitexample 1.png

Step 2

Microbitexample 2.png

Step 3

Microbitexample 3.png

Step 4

Microbitexample 4.png

Step 5

Microbitexample 5.png

Create variables

Simple Counter

Setvariable.png

Setvariable0.png Something is missing here. ask the class to figure out how to "show" the number.

Setvariable1.png

Randomiser

Setmaths.png

Setvariable2.png

Setvariable3.png