/micro-bit-WebBluetooth-UART

micro:bit-WebBluetooth-UART

Primary LanguageJavaScript

micro-bit-WebBluetooth-UART

Demo send & receive data with micro:bit Web Bluetooth UART service.

I created a simple demo to send and receive data with m:bit UART service. The code is purely written in the JavaScript block PXT editor and the HTML5 app for the web bluetooth app running on Chrome browser.

Source code: https://github.com/ferrygun/micro-bit-WebBluetooth-UART/tree/master

More details on the UART service can be found on the following link: https://lancaster-university.github.io/microbit-docs/ble/uart-service/ The code is based on the: https://github.com/LaboratoryForPlayfulComputation/microbit-web-bluetooth

https://youtu.be/Ik7MIB69-jM

Open this page at https://randosy.github.io/micro-bit-webbluetooth-uart/

Use as Extension

This repository can be added as an extension in MakeCode.

Edit this project Build status badge

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)

  • for PXT/microbit
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>