1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 11:57:38 +02:00

- use glog instead of Debug flag

- use glog instead of log
- make code conform to the Go code guidelines
This commit is contained in:
Karan Misra 2014-03-31 18:46:04 +05:30
parent ca17879e6e
commit 9ab49745bc
23 changed files with 554 additions and 703 deletions

View file

@ -3,7 +3,6 @@
package main
import (
"log"
"os"
"os/signal"
"time"
@ -22,11 +21,10 @@ func main() {
pca9685 := pca9685.New(bus, 0x41)
pca9685.Freq = 1000
pca9685.Debug = true
defer pca9685.Close()
if err := pca9685.SetPwm(15, 0, 2000); err != nil {
log.Panic(err)
panic(err)
}
c := make(chan os.Signal, 1)