-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I155484ec759cc997a6ea0376cb8fa2d62f8c35d3
- Loading branch information
Showing
263 changed files
with
7,690 additions
and
1,905 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
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
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
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
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
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
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
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
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,53 @@ | ||
# Microbit\_Uart\_Simple | ||
|
||
The <code>Microbit_Uart_Simple</code> sensor provides the ability to read from and write strings to the BBC micro:bit's serial UART port. | ||
|
||
## Properties | ||
|
||
+ <a name="BluetoothDevice"></a>`BluetoothDevice` – The BluetoothLE component connected to the micro:bit device (setter). | ||
|
||
|
||
![get Microbit_Uart_Simple1 BluetoothDevice ](blocks/Microbit_Uart_Simple.BluetoothDevice_getter.svg) | ||
|
||
|
||
![set Microbit_Uart_Simple1 BluetoothDevice to](blocks/Microbit_Uart_Simple.BluetoothDevice_setter.svg) | ||
|
||
## Methods | ||
|
||
+ <a name="SendMessage"></a>`SendMessage` – Writes the given value <code>UART_TX</code> to the micro:bit. The size of the message will | ||
depend on the value of <code>UART_TX</code>. Numbers will be converted to integers and sent | ||
as 32-bit integer values. Strings will be encoded using UTF-8. Lists of objects will be | ||
sent as a sequence of bytes using the aforementioned rules for numbers and strings. | ||
|
||
__Parameters__: | ||
|
||
* <code>UART_TX</code> (_any_) — | ||
The value to transmit to the RX "pin" of the micro:bit. Strings will be encoded as UTF-8, | ||
numbers will be sent as 32-bit integers. Lists of values will be converted into be | ||
converted into a sequence of bytes depending on the type of each value in the list. | ||
|
||
![call Microbit_Uart_Simple1 SendMessagemessage](blocks/Microbit_Uart_Simple.SendMessage.svg) | ||
|
||
## Events | ||
|
||
+ <a name="MessageReceived"></a>`MessageReceived` – The <code>TXCharacteristicReceived</code> event is run whenever messages are received over the | ||
micro:bit's serial UART protocol. | ||
|
||
__Parameters__: | ||
|
||
* <code>message</code> (<a href="http://appinventor.mit.edu/explore/ai2/support/blocks/listsU.html#makealist">_list_</a>) — | ||
A list of unsigned byte values read from the device. | ||
|
||
![when Microbit_Uart_Simple1 MessageReceived message do](blocks/Microbit_Uart_Simple.MessageReceived.svg) | ||
|
||
+ <a name="MessageSent"></a>`MessageSent` – The <code>WroteRXCharacteristic</code> event is run after a message is written to the micro:bit | ||
via its serial UART. | ||
|
||
__Parameters__: | ||
|
||
* <code>UART_TX_FIELD</code> (<a href="http://appinventor.mit.edu/explore/ai2/support/blocks/listsU.html#makealist">_list_</a>) — | ||
A list of unsigned byte values written to the device. | ||
|
||
![when Microbit_Uart_Simple1 MessageSent message do](blocks/Microbit_Uart_Simple.MessageSent.svg) | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
com.bbc.microbit.profile-20200518.aix |
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.