maxi07 / Teams-Presence

Displays the current Microsoft Teams presence as LED with a raspberry pi.
MIT License
40 stars 16 forks source link

Brightness argument does not work #14

Open sabyrkit opened 2 years ago

sabyrkit commented 2 years ago

The --brightness argument does not work. When doing values between 0.1 and 1, the script fails to run. It appears the argument is looking for an int type value instead of float. image

The other issue with the brightness is there are 2 variables. brighness_led appears to be the variable adjusting the brightness while the --brightness arg changes the brightness variable. This fixed it for me: if args.brightness: if args.brightness < 0.1 and args.brightness > 1: printerror("Value must be between 0.1 and 1") exit(5) brightness = args.brightness printwarning("Option: Brightness set to " + str(brightness))

Probably could do away with the 'brightness' variable all together.