All Projects → LaboratoryForPlayfulComputation → pxt-BlockyTalkyBLE

LaboratoryForPlayfulComputation / pxt-BlockyTalkyBLE

Licence: other
BlocklyTalky BLE service for micro:bit MakeCode - beta

Programming Languages

C++
36643 projects - #6 most used programming language
typescript
32286 projects
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to pxt-BlockyTalkyBLE

pxt-neopixel
A Neo-Pixel package for pxt-microbit
Stars: ✭ 47 (+88%)
Mutual labels:  makecode
pxt-calliope
A Microsoft MakeCode editor for the Calliope Mini board
Stars: ✭ 33 (+32%)
Mutual labels:  makecode
pxt-maker
MakeCode target for "Maker" boards (beta)
Stars: ✭ 107 (+328%)
Mutual labels:  makecode
MakeCode-Android
Run MakeCode Arcade projects on Android!
Stars: ✭ 16 (-36%)
Mutual labels:  makecode
pxt-holidays
A Holiday Card sample target embedding PXT inside a React web app
Stars: ✭ 32 (+28%)
Mutual labels:  makecode
pxt-powerfunctions
MakeCode extension for controlling your LEGO Power Functions devices with an IR-emitting LED
Stars: ✭ 44 (+76%)
Mutual labels:  makecode
Pxt
Microsoft MakeCode (PXT - Programming eXperience Toolkit)
Stars: ✭ 1,649 (+6496%)
Mutual labels:  makecode

blockytalkyble-dal

A key-value pair Bluetooth service for BlockyTalky

Using this extension

Click on the gearwheel, then Extensions, search for blockytalky.

Using the extension

This extension uses Bluetooth Low Energy to communicate to other divices. You will need to pair the micro:bit to a device that supports the BlockyTalky bluetooth profile.

Sending Number

blockytalky.sendNumber("temp", input.temperature())

~ hint

The key part of the message should be less or equal than 6 character long

~

Sending String

blockytalky.sendString("marco", "polo")

~ hint

The value part of the message should be less than 11 character long

~

Receiving number

Register an event handler to handler number messages. A number can be integer or double.

blockytalky.onReceivedNumber(function (key, value) {
	
})

Receiving string

Register an event handler to handler string messages. A number can be integer or double.

blockytalky.onReceivedString(function (key, receivedString) {
	
})

Bluetooth Profile

const BLOCKY_TALKY_SERVICE = '0b78ac2d-fe36-43ac-32d0-a29d8fbe05d6';
const TX_CHARACTERISTIC = '0b78ac2d-fe36-43ac-32d0-a29d8fbe05d7';
const RX_CHARACTERISTIC = '0b78ac2d-fe36-43ac-32d0-a29d8fbe05d8';

Testing

License

MIT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].