Skip to content

Brightness argument does not work #14

@sabyrkit

Description

@sabyrkit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions