Skip to content

Error with hex() #16

@Moritz448

Description

@Moritz448

If i run the example.sh, i got this Error:
Traceback (most recent call last): File "duck2spark.py", line 155, in <module> main(sys.argv[1:]) File "duck2spark.py", line 140, in main result = generate_source(payload, init_delay=init_delay, loop_count=loop_count, loop_delay=loop_delay, blink=blink) File "duck2spark.py", line 65, in generate_source declare += str(hex(payload[c])) + ", " TypeError: hex() argument can't be converted to hex
But if I remove the hex() command, the "Rubber Spark" ;) runs any kind of stupid stuff.

Yours,
Moritz

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