samples: changes to led

- blink every 250 msec
- use Println instead of Printf with \n
This commit is contained in:
Karan Misra 2014-04-25 02:27:44 +05:30
parent e97394e7c2
commit e73b70b296
1 changed files with 2 additions and 2 deletions

View File

@ -39,11 +39,11 @@ func main() {
for {
select {
case <-time.After(500 * time.Millisecond):
case <-time.After(250 * time.Millisecond):
if err := led.Toggle(); err != nil {
panic(err)
}
fmt.Printf("Toggled\n")
fmt.Println("Toggled")
case <-quit:
return
}