A simple heart rate monitor

Greg 7852de3edc Bump gio version, bump ble version. 3 weeks ago
depjars 9484ffac99 Restructure to add depjars directory so that I can cause go to 6 months ago
fastlane 087b6d3d06 Add fastlane/ metadata for F-Droid. 6 months ago
hrm 7852de3edc Bump gio version, bump ble version. 3 weeks ago
.gitignore 9484ffac99 Restructure to add depjars directory so that I can cause go to 6 months ago
LICENSE 94638e9710 Add appicon.png and license information. 6 months ago
README.md acf0e7efe9 Doc updates. 6 months ago

README.md

HRM

An example heart rate monitor app for Android and MacOS using git.wow.st/gmp/ble and Gio.

The MacOS implementation uses a Core Bluetooth binding created by NSWrap. On Android, Martijn van Welie's Blessed library is used to simplify access to the Bluetooth Low-Energy hardware.

MacOS:

git clone https://git.wow.st/gmp/hrm
cd hrm/hrm
go build
./hrm

Android:

The gogio command from gioui.org/cmd/gogio must be installed to build an Android APK.

git clone https://git.wow.st/gmp/hrm
cd hrm/hrm
gogio -target android .
adb install -r hrm.apk

The compiled Java code for the Android implementation is pre-packaged in jar files. If you want to, you can re-compile these dependencies by running go generate from the depjars directory. You will need to have gradle, an Android SDK, and who knows what else installed on your machine.