Skip to content

stanleynguyen/go-everywhere

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
pi
 
 
 
 
uno
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

go-everywhere

Compiling apk

  • Download ndk-bundle
  • go get -u godoc.org/golang.org/x/mobile/cmd/gomobile
  • Run this command inside this project root
ANDROID_HOME=$(pwd) gomobile build -ldflags "-X main.serverURL=<your server url>" -o light.apk github.com/stanleynguyen/go-everywhere/mobo

Flash to arduino

tinygo flash -target arduino uno/main.go

Compiling binary for RPi

GOOS=linux GOARCH=arm GOARM=5 go build -o pi.out -ldflags "-X main.serverURL=<your server url> -X main.pinNumber=<output pin number>" pi/main.go

Then copy to pi with scp pi.out pi@raspberrypi.local:~/