Compare commits
2 Commits
6229d5092a
...
6da26b9585
Author | SHA1 | Date |
---|---|---|
Nico | 6da26b9585 | |
Nico | e68d622015 |
7
Makefile
7
Makefile
|
@ -1,4 +1,4 @@
|
|||
INSTALLDIR=/run/media/nico/KOBOeReader/.adds/gemini
|
||||
INSTALLDIR=/mnt/onboard/.adds/gemini
|
||||
|
||||
all: build update
|
||||
|
||||
|
@ -6,6 +6,5 @@ build: main.go
|
|||
CGO_ENABLED=1 GOARCH=arm CC=arm-kobo-linux-gnueabihf-gcc CXX=arm-kobo-linux-gnueabihf-g++ go build -o kobo-gemini
|
||||
|
||||
update: build
|
||||
cp kobo-gemini ${INSTALLDIR}
|
||||
cp data/* ${INSTALLDIR}
|
||||
chmod a+x ${INSTALLDIR}/*.sh
|
||||
scp kobo-gemini root@kobo:${INSTALLDIR}
|
||||
scp data/* root@kobo:${INSTALLDIR}
|
||||
|
|
5
main.go
5
main.go
|
@ -5,7 +5,7 @@ import (
|
|||
"bytes"
|
||||
"crypto/x509"
|
||||
"errors"
|
||||
// "fmt"
|
||||
"fmt"
|
||||
"git.sr.ht/~adnano/go-gemini"
|
||||
"git.sr.ht/~adnano/go-gemini/tofu"
|
||||
"github.com/golang/freetype/truetype"
|
||||
|
@ -105,7 +105,7 @@ func main() {
|
|||
|
||||
// Touchscreen setup
|
||||
touchPath := "/dev/input/event1"
|
||||
t := koboin.New(touchPath, height, width)
|
||||
t := koboin.New(touchPath, width, height)
|
||||
if t == nil {
|
||||
return
|
||||
}
|
||||
|
@ -190,6 +190,7 @@ func main() {
|
|||
if err != nil {
|
||||
continue
|
||||
}
|
||||
fmt.Println(x,y)
|
||||
if x < 100 && y < 100 {
|
||||
fb.Println("Exiting...")
|
||||
break
|
||||
|
|
Reference in New Issue