5
Train the Trainer Resources Hex Files Here - https://goo.gl/mQoVRV http://microbit.org https://makecode.microbit.org/ In this Topic we will explore the Basic commands list and use some of the coding support features of the Makecode environment Open the Makecode website https://makecode.microbit.org Click on the Basic commands this. Familiarise yourself with the function of each command. A reference guide can be found at https://makecode.microbit.org/reference/ . Further support can be found about each command in Makecode by Right Clicking on a block and selecting Help. Tasks Access the reference guide Right click on command blocks and access their help information Learning Objectives 1. Begin using the basic microbit commands to create complex programs 2. Understand the fundamental computer science processes such as debugging , pseudocode and algorithms 3. Learn how to save a projects and share with others Computing Concepts Understand that even only with a small number of code commands to complex programs can be created Understand how to create an algorithm and write Pseudocode Learn how to debug a simple program and leave comments Topic 2 Using Basic commands (not BASIC) Write Psuedocode that will display a flashing smiley/sad face?

Train the Trainer Resources - The Micro:bit Foundation …microbit.org/assets/posts/2018-01-19-train_the_trainer/...Train the Trainer Resources Hex Files Here - In this Topic we will

Embed Size (px)

Citation preview

TraintheTrainerResources HexFilesHere-https://goo.gl/mQoVRV

http://microbit.org https://makecode.microbit.org/

InthisTopicwewillexploretheBasiccommandslistandusesomeofthecodingsupportfeaturesoftheMakecodeenvironment

OpentheMakecodewebsitehttps://makecode.microbit.org

ClickontheBasiccommandsthis.Familiariseyourselfwiththefunctionofeachcommand.

Areferenceguidecanbefoundathttps://makecode.microbit.org/reference/.FurthersupportcanbefoundabouteachcommandinMakecodebyRightClickingonablockandselectingHelp.

Tasks

Accessthereferenceguide

Rightclickoncommandblocksandaccesstheirhelpinformation

LearningObjectives1.Beginusingthebasicmicrobitcommandstocreatecomplexprograms2.Understandthefundamentalcomputerscienceprocessessuchasdebugging,pseudocodeandalgorithms3.Learnhowtosaveaprojectsandsharewithothers

ComputingConceptsUnderstandthatevenonlywithasmallnumberofcodecommandstocomplexprogramscanbecreatedUnderstandhowtocreateanalgorithmandwritePseudocodeLearnhowtodebugasimpleprogramandleavecomments

Topic2UsingBasiccommands

(notBASIC)

WritePsuedocodethatwilldisplayaflashingsmiley/sadface?

TraintheTrainerResources HexFilesHere-https://goo.gl/mQoVRV

http://microbit.org https://makecode.microbit.org/

UsingyourPsuedocodeasaguide,andonlyusethingbasiccommandsandtheeventhandlerstocreateaprogram.Studentsshoulddiscoverthattheeventhandlersin

thebasiccommandrequiresthemtocreatedifferentcodetoachievethesameeffect.

Possiblesolutions Usethecommentfeatureofmakecodetoaddcommentstoyourcode.Rightclickonacommandblockwhereyouwanttoaddcomment.Thiswilladdalittlebluecirclewithaquestionsmark.

Hoveringthemouseovertheedgeofcommentboxwillallowittobemoved,sothatitisnotcoveringanycodeorothercommentsCommentscanalsobeusefultogivefeedbackfromteacherstostudents.Studentsneedtobeawarethatthisfeedbackisavailable.Commentsarenotpartofthecodeitself.Theywillnotappearonthemicro:bit,onlywhenthecodeisbeingdevelopedintheworkspace.

Whyisimportanttousecommentsinyourcode?

TraintheTrainerResources HexFilesHere-https://goo.gl/mQoVRV

http://microbit.org https://makecode.microbit.org/

Beingabletoshareprogramsandalgorithmsisavitalaspectofsoftwaredevelopment.SuchasLibrariesandcommunitieslikeGitHubhelpdeveloperscreatebetterandmoreeffective

algorithmsandapplications.Withthemicro:bityoucansharecodebyclickingthisicon.ThiswillgenerateaURLwhichcanbeemailed/sharedwithothers.Thereisalsoanoptiontogenerateembedcode.Thiswillallowtheprojecttodisplayedonawebpage.**N.B.Remindstudentsthatwhentheysharethiscode.Itispublicandtheyshouldensurethattheircodeandcommentscontainnopersonalinformation.

Savingyourmicrobitcodeasprojectmeansthatyoucanworkonoveraperiodoftime.Saveyourworkandgiveitarelevantnameandclickthesaveicon.

Ifyouusethesamenameforthedevelopmentofaprogram,itwillautomaticallyincrementthefilename

Workwillbesavedasamicrobitfilecalleda.hexfile.Thiswillbeautomaticallysavedtothefolderassignedtothebrowserfordownloadingfiles.Hexfilesonlymakesensetoamicrobit,Youcanopenthesefilestoseewhatthecodelookslikebyusingasimpletexteditorlikenotepad.Openyourhexfilewithatexteditor

Howcouldyouusethesefeaturestodevelopcomputingwithstudents?

TraintheTrainerResources HexFilesHere-https://goo.gl/mQoVRV

http://microbit.org https://makecode.microbit.org/

AnyworksavedcanbeaccesseddirectlywithintheMakecodeEnvironmentbyclicking

theProjectsiconandselectingMystuffSelectimportfilesandbrowsethecomputerfortheirfile.Oncetheychosenthefile.ClickGoaheadanditopenintheworkspace.AnotherwayistofindthehexfileinafolderonyourcomputerandclickanddraggingittotheworkspaceinMakecode.TasksPracticesavingandimportingyourHexfiles.Usebothmethodsandcompare. Howcouldyouusethesebeusefulforteachersindeliveringcomputinglessons?

TraintheTrainerResources HexFilesHere-https://goo.gl/mQoVRV

http://microbit.org https://makecode.microbit.org/

TrainerReflection

PracticeexercisesCreateyourownprogram.Makeitascomplexaspossible.But,onlyusetheBASICcommands

Topic2UsingBasiccommands

(notBASIC)

Whathaveyoulearntinthistopic?

Whatelsedoyouthinkyouneedtoknowaboutthistopicandhowwillyoufindthisout?

Howmightyouintroducethistopictootherteachers?

Whatareasofthistopicmightbedifficulttoteachorunderstandforotherteachers?