add README.md

This commit is contained in:
Greg 2019-11-27 11:52:18 -05:00
parent 66c4ac4885
commit 11962c3372
1 changed files with 24 additions and 0 deletions

24
README.md Normal file
View File

@ -0,0 +1,24 @@
# HRM
An example heart rate monitor app for Android and MacOS using [git.wow.st/gmp/ble](https://git.wow.st/gmp/ble) and [Gio](https://gioui.org).
## MacOS:
```
go get git.wow.st/gmp/hrm
cd ~/go/src/git.wow.st/gmp/hrm
go build
./hrm
```
## Android:
The `gogio` command from `gioui.org/cmd/gogio` must be installed to build
an Android APK.
```
go get git.wow.st/gmp/hrm
cd ~/go/src/git.wow.st/gmp/hrm
gogio -target android .
adb install -r hrm.apk
```