Go programmers can now develop Bluetooth Low Energy peripherals that run bare-metal code on Adafruit “Bluefruit” boards, such as the Adafruit Circuit Playground Bluefruit, by using TinyGo (https://tinygo.org) alongside our newest open source package, the aptly named “Go Bluetooth” (https://tinygo.org/bluetooth).
“Adafruit has put together a thoughtful combination of clean hardware design, use of the developer-friendly UF2 bootloader, and pre-installation of the Nordic Semiconductor SoftDevice that powers the built-in Bluetooth hardware.” says Ron Evans aka @deadprogram, “Technologist For Hire” and core member of the TinyGo team. “There is no smoother developer experience for TinyGo developers then using Adafruit boards to write bare-metal code for BLE devices using our favorite programming language, Go.”
The line of “Bluefruit” boards created by Adafruit already have the SoftDevice firmware pre-loaded. This means you can use TinyGo and the Go Bluetooth package without any additional steps required. Supported Adafruit boards include:
- Adafruit Circuit Playground Bluefruit
- Adafruit CLUE Alpha
- Adafruit Feather nRF52840 Express
- Adafruit ItsyBitsy nRF52840
After you have installed TinyGo and the Go Bluetooth package, you should be able to compile/run code for your device.
For more information about Go Bluetooth, please go to https://tinygo.org/bluetooth