mirror of
https://github.com/stianeikeland/go-rpio.git
synced 2025-02-02 15:30:36 +01:00
Typos
This commit is contained in:
parent
9241d64c05
commit
0ad5c5ccb6
|
@ -10,6 +10,7 @@ Connect a LED with resistor from pin 19 to ground.
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
|
@ -37,7 +38,7 @@ func main() {
|
|||
pwm.SetDutyCycle(i, 32)
|
||||
time.Sleep(time.Second/32)
|
||||
}
|
||||
for i := uint32(32); i > 0; i-=3 { // decreasing brightness
|
||||
for i := uint8(99); i > 0; i-=3 { // decreasing brightness
|
||||
pwm.SetDutyCyclePercentage(i)
|
||||
time.Sleep(time.Second/32)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user