Compare commits

...

2 Commits

Author SHA1 Message Date
Nico 6da26b9585 push builds over ssh 2021-02-05 13:18:57 +00:00
Nico e68d622015 fix touch input 2021-02-05 13:18:44 +00:00
2 changed files with 6 additions and 6 deletions

View File

@ -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}

View File

@ -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