http://microbit.org/
micro:bit makecode
https://makecode.microbit.org/#
積木與javaScript 對照
右上角齒輪(設定)可以更改語言
micro:bit Taiwan FB
https://www.facebook.com/notes/microbit-taiwan/microbit-taiwan-%E6%96%87%E7%AB%A0%E8%B3%87%E6%BA%90%E6%95%B4%E7%90%86/1151293071668412/
阿玉micro:bit研究區
micro:bit music python
http://glophy.com/index.php/micro-bit/288-microbit-sound
Home work
1. show 愛心一閃一閃(Blink)
Basic:
forever
show icon heart
pause 1000
clear screen
2.show 喜(happy),怒(angry),哀(sad),樂(surprise) [follow mirco:bit]
Basic:
forever
show icon happy
pause 1000
show icon angry
pause 1000
show icon sad
pause 1000
show icon surprise
pause 1000
3.show 箭頭指向A鍵(<-),箭頭指向B鍵(->)
input:
on button A
show <-
on button B
show ->
4. 剪刀(scissors),石頭(stone),布(cloth)遊戲
自繪 :剪刀(scissors),石頭(stone),布(cloth)圖形
input:
A button:show剪刀
B button:show 石頭
A+B button: show 布
4A. 電子骰子
自繪 :骰子1,2,3,4,5,6點圖形
(ps. 可以用創圖設定骰子圖形)
input: shake
item set 1+ random 0~5
if item =1
show 1 圖形
elseif item =2
show 2 圖形
elseif item =3
show 3 圖形
elseif item =4
show 4 圖形
elseif item =5
show 5 圖形
elseif
show 6 圖形
show 6 圖形
(1).Radio 猜數字
(a).Teacher: random number 1~10 "t" , receiving Student's guess number "s" ,
if t==s then send 0
if t>s then send 1
if t<s then send 2 to Student
(b).Student: send the guess number "s" to Teacher
Receiving Teacher's number "tt"
if tt==0 then show "Equal"
if tt==1 then show "High"
if tt==2 then show "Low"
Math: random number
Radio:
Logic:
(2).Radio 剪刀(scissors)石頭(stone),布(cloth)遊戲
與 (1).Radio 猜數字相似
6.利用其他input 表現4.遊戲
如:Shake, log up/down, tilt left/right, screen up/down, free fall,
3g, 6g, 8g
7. 口型字閃燈
begin
set x to 0
set y to 0
forever
repeat 4 times
plot x=x, y=0
pause
unplot x=x,y=0
change x by 1
repeat 4 times
plot x=x, y=y
pause
unplot x=x,y=y
change y by 1
repeat 4 times
plot x=x, y=y
pause
unplot x=x,y=y
change x by -1
repeat 4 times
plot x=x, y=y
pause
unplot x=x,y=y
change y by -1
plot x=x, y=y
pause
unplot x=x,y=y
change y by -1
8. 計步器
顯示在一定時間內的跑步次數
9.擊擊棒
Gnd:線圈
P0:擊擊棒
在一定時間內擊擊棒觸電的次數
10.電子鋼琴
Music:
11.以按鍵顯示26個英文字母
Text:
12. show temperature
13. show light level
14. 感應燈
人走過時亮燈10秒
15. 答題按鈕