25 lines
441 B
Markdown
25 lines
441 B
Markdown
|
# HRM
|
||
|
|
||
|
An example heart rate monitor app for Android and MacOS using [git.wow.st/gmp/ble](git.wow.st/gmp/ble) and [Gio](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
|
||
|
```
|