Skip to content

Latest commit

 

History

History

xiao-ble

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

xiao-ble examples

TinyGo example of XIAO BLE.
This is a Demo using Bluetooth.

How to use

First write ble-led-server to the XIAO BLE.

$ tinygo flash --target xiao-ble --size short ./xiao-ble/ble-led-server

Perform the following from a Bluetooth-enabled PC.
If successful, the LED on the XIAO BLE will flash.

$ go run ./xiao-ble/ble-led-client/

This source code works perfectly with TinyGo.
The result is the same as when run from a PC.

$ tinygo flash --target xiao-ble --size short ./xiao-ble/ble-led-client/

If you have another XIAO BLE, you can try the same Demo as in the video.

$ tinygo flash --target xiao-ble --size short ./xiao-ble/ble-led-client-xiao/