Skip to content

Add code to turn on/off the LED #1

@codedance

Description

@codedance

Suggested from Mark T. Add code to turn on/off the LED. Would be good edition to the command set. i.e. warn before you're shot or powered up when it's active.

Code suggestion below. Will do this soon.

def led(cmd):

DEVICE.ctrl_transfer(0x21, 0x09, 0, 0, [0x03, cmd, 0x00,0x00,0x00,0x00,0x00,0x00])

elif command == "led":

    if value == 0:

        led(0x00)

    else:

        led(0x01)

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