micro:bit Numeric

4.25 (8)

การสื่อสาร | 62.7KB

คำอธิบาย

แอพนี้สื่อสารระหว่าง Android และอุปกรณ์ Micro: Bit คุณสามารถส่งข้อมูลตัวเลขเป็นข้อความหรือค่า การสื่อสารของ UART ยังต้องดำเนินการที่ Micro: Bit Device ฟรีที่เปิดใช้งานข้อความ: การส่งข้อมูลข้อความ - ข้อความปิดใช้งาน: การส่งข้อมูลตัวเลข
Newline Enablable: ' N' (Newline) เพิ่ม
Newline Disabled: ไม่มีข้อมูลเพิ่มเติม - เปิดใช้งานศูนย์ (เปิด / สัมผัส / สัมผัส): ส่ง 0 บนปุ่มปล่อย
สำหรับการเขียนโปรแกรม PXT คุณต้องเปิดใช้งานข้อความและบรรทัดใหม่
:
- ขั้นต่ำ Android 4.4
- บลูทู ธ พลังงานต่ำ (BLE)
- อุปกรณ์จับคู่ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!
- Micro: Bit Programm (พัฒนาด้วยตัวเอง)
ตัวอย่าง PXT Javascript:
Let Str = ""
ให้เชื่อมต่อ = 0
input.onbuttonpressed (buttec.a, () => {
ถ้า (เชื่อมต่อ) {
Bluetooth.uartwritestring ("A")
}
})
Bluetooth.onbluetoothconnected ((() => {
connected = 1
})
Bluetooth.onbluetoothdisconnected (() => {
connected = 0
})
Bluetooth.startuartservice ()
basic.forever ((((() => {
ถ้า (เชื่อมต่อ == 1) {
str = bluetooth.uartreaduntil (serial.delimiters (delimiters.newline))
ถ้า (str = = "B") {
Basic.ShowsTring ("สวัสดี")
} else {
Basic.ShowsTring (Str)
} อื่น ๆ {
basic.Showleds (`
..... ฟรี. # .. .. .. .. .. .. #
# .. # ..
# ..
br>})
หมายเหตุ: อย่าลืมจับคู่อุปกรณ์ (หลังจากการเปลี่ยนแปลงโปรแกรม Micro: Bit)

Show More Less

มีอะไรใหม่ micro:bit Numeric

bug receiving solved

ข้อมูล

อัปเดตเมื่อ:

เวอร์ชันปัจจุบัน: 2.2

เวอร์ชัน Android ที่กำหนด: Android 5.0 or later

Rate

Share by

คุณอาจชอบ