Skip to content

Raspberry python3.7: light.py fails to execute at struct #6

@dpinna13

Description

@dpinna13

As is in python3.7, the example in the readme fails to run as:

    packet = struct.pack(">BBBBBB",
NameError: name 'struct' is not defined 

adding import struct in light.py solves the error, and the example runs successfully as sudo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions