-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
9,300 additions
and
3,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
4,103 changes: 2,052 additions & 2,051 deletions
4,103
app/static/microbit/microbit_webserial_v1.hex
Large diffs are not rendered by default.
Oops, something went wrong.
4,405 changes: 2,706 additions & 1,699 deletions
4,405
app/static/microbit/microbit_webserial_v2.hex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,251 changes: 1,251 additions & 0 deletions
1,251
source/scratch-vm/src/extensions/scratch3_webserialMicrobit/index.js
Large diffs are not rendered by default.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
source/scratch-vm/src/extensions/scratch3_webserialMicrobit/translation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
export const w_content ={ | ||
'en': 'Contented micro:bit', | ||
'zh-tw': '連線到micro:bit', | ||
} | ||
export const ledDisplayTextAry = { | ||
'en': 'led display bmp [TEXT]', | ||
'zh-tw': 'led顯示圖像[TEXT]', | ||
}; | ||
|
||
export const analogRead ={ | ||
'en': 'analog pin [PIN] valume', | ||
'zh-tw': '類比腳位[PIN]值', | ||
}; | ||
|
||
export const digitalRead ={ | ||
'en': 'digital pin [PIN] valume', | ||
'zh-tw': '數位腳位[PIN]值', | ||
}; | ||
|
||
export const analogWrite ={ | ||
'en': 'PWM pin [PIN] output [VALUE]', | ||
'zh-tw': 'PWM腳位[PIN]輸出[VALUE]', | ||
}; | ||
|
||
export const digitalWrite ={ | ||
'en': 'digital pin [PIN] output [VALUE]', | ||
'zh-tw': '數位腳位[PIN]輸出[VALUE]', | ||
}; | ||
|
||
export const lightRead = { | ||
'en': 'v2_temperature valume', | ||
'zh-tw': 'v2_光線值', | ||
}; | ||
|
||
export const radioRead = { | ||
'en': 'v2_radio valume', | ||
'zh-tw': 'v2_收到廣播值', | ||
}; | ||
|
||
export const radioSend = { | ||
'en': 'v2_radio send [TEXT]', | ||
'zh-tw': 'v2_廣播送出[TEXT]', | ||
}; | ||
|
||
export const isG248 ={ | ||
'en': 'v2_accelerometer [GXXX]', | ||
'zh-tw': 'v2_加速度[GXXX]', | ||
}; | ||
|
||
export const servoValue = { | ||
'en': 'v2_servo at [PIN] angle[VALUE]', | ||
'zh-tw': 'v2_[PIN]腳位伺服馬達角度[VALUE]', | ||
}; | ||
|
||
export const FormTone = { | ||
'en': 'v2_Tone [FREQ] Hz [DURATION] ms', | ||
'zh-tw': 'v2_音調頻率為[FREQ]時間為[DURATION]毫秒', | ||
}; | ||
export const tempRead = { | ||
'en': 'v2_ ', | ||
'zh-tw': 'v2_溫度', | ||
}; | ||
export const mma8653Read={ | ||
'en': 'mma8653 [XYZ] valume', | ||
'zh-tw': '三軸[XYZ]值', | ||
}; | ||
export const mag3110Read={ | ||
'en': 'mag3110 [XYZ] valume', | ||
'zh-tw': '磁感[XYZ]值', | ||
}; | ||
|
||
export const tilt_direction_menu_ary={ | ||
'en': ['front','back','left','right','any'], | ||
'zh-tw': ['向前','向後','向左','向右','任何'] | ||
}; | ||
|
||
export const ledDisplayLine ={ | ||
'en': 'LED line on x:[BX] y:[BY] ,to x:[EX] y:[EY]', | ||
'zh-tw': 'x:[BX] y:[BY],到點x:[EX] y:[EY]亮燈' | ||
}; | ||
|
||
export const displaydrawPixel = { | ||
'en': 'x:[X] y:[Y] LED [ONOFF]', | ||
'zh-tw': 'x:[X] y:[Y]亮熄[ONOFF]' | ||
}; | ||
|
||
export const mag3110direct ={ | ||
'en': 'direction', | ||
'zh-tw': '方向' | ||
}; | ||
|
||
export const directEWSN ={ | ||
'en': ['east', 'northeast', 'north','northwest','west','southwest','south','southeast'], | ||
'zh-tw': ['東', '東北', '北','西北','西','西南','南','東南'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.