Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore ขั้นตอนการเขียนโปรแกรม2

ขั้นตอนการเขียนโปรแกรม2

Published by sawitreechurak, 2022-01-05 02:22:18

Description: ขั้นตอนการเขียนโปรแกรม2

Search

Read the Text Version

ขนั้ ตอนการเขยี นโปรแกรม การเขยี นโปรแกรม Make Code Programming เป้ าหมาย : เพอ่ื ศกึ ษาการทำงานทว่ี นกลบั มาทเ่ี ดมิ จนกวา่ จะถงึ จดุ ทเ่ี รากำหนดไว ้ ผลการเขยี นโปรแกรม : โปรแกรมทำงานทวี่ นกลบั มาทเ่ี ดมิ จนถงึ จดุ ทเี่ รากำหนดไว ้ ขนั้ ตอนการเขยี นโปรแกรม Loop_For 1.กดเขา้ ไปท่ี Link : https://makecode.microbit.org เพอ่ื เขา้ หนา้ โปรแกรม microbit คลกิ เลอื ก New Project และตงั้ ชอ่ื โครงการ 2.จะปรากฏดงั ภาพ ใหค้ ลกิ icon เลอื กExtensions หรอื กดAdvancedเลอื ก Extension

3.คลกิ เลอื ก Basic เลอื ก Forever คลกิ เลอื ก Loops เลอื ก For do คลกิ เลอื ก Led เลอื ก toggle และ unplot คลกิ เลอื ก Variables เพอื่ ทําการ Add library Variables เขา้ มาในโปรแกรม หลงั จาก นัน้ ตงั้ ชอื่ วา่ เป็ น xindex ของคำศพั ท์ คลกิ เลอื ก Basic เลอื ก pause (ms)



4.คลกิ เลอื ก lnput เลอื ก เพอ่ื กำหนดตวั แปร A, B, A+B คลกิ เลอื ก Loops เลอื ก For do คลกิ เลอื ก Basic เลอื ก show number, show string show icon, clean screen 5.โคด้ ควบคมุ Motor

https://makecode.microbit.org/_R5RVz5aXw0Fw


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook