Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Testing on Fading
- while True:
- f.seek(0)
- f.write(str(round(pwmPeriod*brightness)))
- brightness += step
- if(brightness >= max or brightness <= min):
- step = -1 * step
- time.sleep(ms/1000)
Advertisement
Add Comment
Please, Sign In to add comment