m5k1umn 发表于 2024-10-10 07:54:55

micro:bit是什么?小学生拿着它就能召唤神龙?


    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/a602561041364e6f8cd94b1441238122~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=rjgk81nkzH0Qbv%2FywUxPm9WpXEU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">micro:bit是一款由英国广播电视<span style="color: black;">机构</span>(BBC) 为青少年编程教育设计,并由微软,三星,ARM,英国兰卡斯特大学等合作伙伴<span style="color: black;">一起</span>完成<span style="color: black;">研发</span>的微型电脑。BBC<span style="color: black;">期盼</span><span style="color: black;">经过</span>micro:bit驱动青少年参与到创造性的硬件制作和软件编程中去,而不是<span style="color: black;">每日</span>沉浸在各式的娱乐和消费中。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/af959e7840484153ae2a4a2734158fd7~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=g7ReZt6yxt7Xr562AnzxNAwwS%2Fs%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/313c4246c47f4ef3bd02257bf7b3fde4~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=Us%2FRByJymdYEBZUAvjJj4auyFqo%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/78560eb6fae541588c784c9c7daa2def~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=a3QcVmNc1gi2%2BhjPowH3WzsYa7o%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">BBC<span style="color: black;">期盼</span>micro:bit<span style="color: black;">能够</span>作为编程<span style="color: black;">基本</span>学习的跳板,让学生<span style="color: black;">把握</span>编程知识后<span style="color: black;">能够</span>进一步<span style="color: black;">运用</span>更<span style="color: black;">繁杂</span>的设备,例如Arduino、Raspberry Pi(树莓派)等,<span style="color: black;">因此</span>说micro:bit并非取代Arduino和Raspberry Pi(树莓派),反而是Arduino的<span style="color: black;">基本</span>延伸。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">micro:bit很小,<span style="color: black;">仅有</span>卡片<span style="color: black;">体积</span>(5cm X 4cm),但板载的电子模块还是非常丰富的:5x5 LED<span style="color: black;">表示</span>屏,两颗可编程按键,加速度计,电子罗盘,温度光线传感器,低功耗蓝牙等。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/77e60f0ca65946eda5e6cd22b4712b14~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=XADsTVamj0M4ds5Ch6tlUyYQaKY%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1.</span><strong style="color: blue;"><span style="color: black;">姓名徽章</span></strong></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/43c3d47ff3b1439ca0cc5bfee55c7c40~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=LrRaiI6RUoND3wm%2Bjaiye232C9o%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">micro:bit的LED<span style="color: black;">表示</span>器输出能够<span style="color: black;">表示</span>单词、数字(遗憾的是,<span style="color: black;">不可</span><span style="color: black;">表示</span>中文),只要如下简单的代码方块就<span style="color: black;">能够</span>实现上图的功能</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/0911256cd88345909d9e2d381dfccf57~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=MAPPZ%2BogTAWJJgBKIzzDEmm0QZk%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2.</span><strong style="color: blue;"><span style="color: black;">计步器</span></strong></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/ca1ab70b45b742569bc554d2186b5424~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=pFEAT%2FhgtI5UuOe1SYaHrr%2B00Zs%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">该程序<span style="color: black;">运用</span>加速度计来计算步数,micro:bit每晃动一次计一步,总数储存在一个变量中,变量名为steps。 使micro:bit上的LED灯保持开启状态需要<span style="color: black;">更加多</span>电量。该程序仅在按下按键A时<span style="color: black;">表示</span>计步数,<span style="color: black;">因此呢</span>会节省电量。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">代码块如下:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/df882795c24d4265ab7cb0419b9c3a19~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=MO%2Bb2pSbujnRJfD6npTR63DJ0ag%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3.</span><strong style="color: blue;"><span style="color: black;">触摸秒表</span></strong></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/248bdce7ea344498a37dc76e317db8de~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=fiZiyhncgh8eupiWKGutzAEENCI%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">micro:bit记录开机(通电)后的时间,以毫秒为单位 (千分之一秒)。这<span style="color: black;">叫作</span>为运行时间。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">按下按键A时,名为start的变量会设置为当前的运行时间。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">按下按键B时,新的当前运行时间会减去start记录的值,<span style="color: black;">这般</span>便得到了从秒表<span style="color: black;">起始</span>计时到当前过了多少时间。此差值将被累加到总时间中,总时间存储在一个名为time的变量中。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">倘若</span>按下触摸徽标,程序会在LED<span style="color: black;">表示</span>屏上<span style="color: black;">表示</span>总时间。它将时间除以1000, 从毫秒(千分之一秒)换算为秒。它<span style="color: black;">运用</span>整数除法运算符给出整数结果。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">程序<span style="color: black;">亦</span><span style="color: black;">运用</span>名为running的布尔变量来<span style="color: black;">掌控</span>运行。布尔变量只能有两种值:True或False。<span style="color: black;">倘若</span>running变量值为true,<span style="color: black;">显示</span>秒表已<span style="color: black;">起始</span>计时。<span style="color: black;">倘若</span>running变量值为false,<span style="color: black;">显示</span>秒表尚未<span style="color: black;">起始</span>计时<span style="color: black;">或</span><span style="color: black;">已然</span>停止计时。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">倘若</span>running变量值为true,则程序<span style="color: black;">运用</span>loop循环在LED<span style="color: black;">表示</span>屏上<span style="color: black;">连续</span><span style="color: black;">表示</span>动态心形。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">倘若</span>秒表已被停止,且<span style="color: black;">倘若</span>running变量的值不是true时,<span style="color: black;">仅有</span>按下徽标时才会<span style="color: black;">表示</span>时间。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">程序为了防止误计数,变量time的值仅在计时<span style="color: black;">起始</span>后、且按下按键B时才会<span style="color: black;">出现</span>改变,判断<span style="color: black;">办法</span>为running变量的值为true。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/c258d9727d7843f4808caa2fd073f1bb~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=YaAHOd3MFxQxrQL4ss%2Fsk8A1PvE%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/0fc6c09bbf344607a05b5749ae3049c7~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=IQuRjPltXdnU%2BsegHeUXPeHpkYA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1.用浏览器打开官网</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">https://makecode.microbit.org/</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/9f0a5e5b68244ed8a9d6d873f5a4f534~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=juQHU96VWyM4eXL%2B7SmOpRw6PRs%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.点击“新建项目”</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.输入项目名<span style="color: black;">叫作</span>,例如“hello”</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/675f7e6b5e534f78a2ef1647f7ad6498~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=j3IGd8m76OgwoeryBB6x7pr66vI%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.从中间的代码块中,<span style="color: black;">选取</span>需要的代码,拖拽到代码编辑区</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/d1b0726c560b485599935abb5a2c05c5~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=wo8BeU1fGimN6j8yiKvIe8wEsqY%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">如上图,就<span style="color: black;">能够</span>得到一个“姓名徽章”的应用程序</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">更加多</span>应用案例<span style="color: black;">能够</span>参考:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://microbit.org/zh-cn/get-started/user-guide/features-in-depth/</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/91308da357b84d21b4e9110d68d15424~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728787554&amp;x-signature=RDM5pYnLXCDBEWfjh58Jbu5PGHU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">学会了这些,再发挥你的想象力,就<span style="color: black;">能够</span>召唤神龙了</p>




j8typz 发表于 2024-10-22 18:23:38

网站建设seio论坛http://www.fok120.com/

nqkk58 发表于 2024-11-10 06:35:10

大势所趋,用于讽刺一些制作目的就是为了跟风玩梗,博取眼球的作品。

m5k1umn 发表于 昨天 22:32

你的努力一定会被看见,相信自己,加油。
页: [1]
查看完整版本: micro:bit是什么?小学生拿着它就能召唤神龙?