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 การเขียนโปรแกรม LoopFor

การเขียนโปรแกรม LoopFor

Published by chenfeilulu, 2022-01-05 03:23:08

Description: การเขียนโปรแกรม LoopFor

Search

Read the Text Version

การเขยี นโปรแกรม Loop_For เป้าหมาย : เพ่อื เรยี นรูพ้ นื้ ฐานการควบคมุ Loop_For ผลโปรแกรม : กด A จะขนึ้ เลข 0 1 2 และ3 ตามลาดบั แลว้ ไฟจะไลจ่ ากแถวแรกจนถึงแถวท่ี 5 กด B จะขนึ้ ตวั อกั ษร PIYAPAT กด A+B จะขนึ้ รูป หวั ใจ เสอื้ และ สีเ่ หลี่ยม ข้ันตอนการเขยี นโปรแกรม 1.เขา้ ไปท่โี ปรแกรม Link: https://makecode.microbit.org เพ่อื เขา้ หนา้ โปรแกรม makecode คลิกเลือก New Project จะไดห้ นา้ ต่างดงั รูป

2. . คลกิ เลอื ก Teb Loop เพอ่ื ทำกำร Add Library Loop เขำ้ มำในโปรแกรม 3.โคด้ ควบคมุ Motor

Link : https://makecode.microbit.org/_DtEivMKgpKf5


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