Compare commits
3
Commits
93516cd441
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
087b6d3d06 | ||
|
|
6c00897583 | ||
|
|
acf0e7efe9 |
@@ -0,0 +1,34 @@
|
|||||||
|
# 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).
|
||||||
|
|
||||||
|
The MacOS implementation uses a Core Bluetooth binding created by
|
||||||
|
[NSWrap](https://git.wow.st/gmp/nswrap). On Android, Martijn van Welie's
|
||||||
|
[Blessed](https://github.com/weliem/blessed-android) 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.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Simple bluetooth low-energy heart rate monitor with a stopwatch function to
|
||||||
|
time your workouts. Automatically connects to your last-used peripheral or you
|
||||||
|
can scan for nearby bluetooth devices.
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
@@ -0,0 +1 @@
|
|||||||
|
Simple bluetooth low-energy heart rate monitor
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# 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
|
|
||||||
```
|
|
||||||
+1
-1
@@ -4,7 +4,7 @@ go 1.13
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
gioui.org v0.0.0-20191126175243-2ca2e5462f16
|
gioui.org v0.0.0-20191126175243-2ca2e5462f16
|
||||||
git.wow.st/gmp/ble v0.0.0-20191213182030-52217c3f6a2f
|
git.wow.st/gmp/ble v0.0.0-20191230162624-2d7594514cb3
|
||||||
github.com/google/go-github/v24 v24.0.1 // indirect
|
github.com/google/go-github/v24 v24.0.1 // indirect
|
||||||
golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c // indirect
|
golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c // indirect
|
||||||
gopkg.in/yaml.v2 v2.2.7
|
gopkg.in/yaml.v2 v2.2.7
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ git.wow.st/gmp/ble v0.0.0-20191213173536-99bfee1cbdbf h1:LBqP/fMUR0FZN7YwiwuZ6i5
|
|||||||
git.wow.st/gmp/ble v0.0.0-20191213173536-99bfee1cbdbf/go.mod h1:Fh9BYe6AckJS7dzv2LFPr/wSYVMROUwmtc01VyQmuZo=
|
git.wow.st/gmp/ble v0.0.0-20191213173536-99bfee1cbdbf/go.mod h1:Fh9BYe6AckJS7dzv2LFPr/wSYVMROUwmtc01VyQmuZo=
|
||||||
git.wow.st/gmp/ble v0.0.0-20191213182030-52217c3f6a2f h1:rLZaIsaH0Ai7W6sWunN16dQ9rRTuvRcegZS/nkNbPpU=
|
git.wow.st/gmp/ble v0.0.0-20191213182030-52217c3f6a2f h1:rLZaIsaH0Ai7W6sWunN16dQ9rRTuvRcegZS/nkNbPpU=
|
||||||
git.wow.st/gmp/ble v0.0.0-20191213182030-52217c3f6a2f/go.mod h1:Fh9BYe6AckJS7dzv2LFPr/wSYVMROUwmtc01VyQmuZo=
|
git.wow.st/gmp/ble v0.0.0-20191213182030-52217c3f6a2f/go.mod h1:Fh9BYe6AckJS7dzv2LFPr/wSYVMROUwmtc01VyQmuZo=
|
||||||
|
git.wow.st/gmp/ble v0.0.0-20191230162624-2d7594514cb3 h1:rMmx9qz3lb6kdzKzU2cJgb9opi+W/YQwtAbbjSCmVGg=
|
||||||
|
git.wow.st/gmp/ble v0.0.0-20191230162624-2d7594514cb3/go.mod h1:Fh9BYe6AckJS7dzv2LFPr/wSYVMROUwmtc01VyQmuZo=
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
|
|||||||
Reference in New Issue
Block a user