vpelletier / python-dfu

Python implementation of USB DFU device class
GNU General Public License v2.0
25 stars 7 forks source link

How to convert Normal Mode to DFU Mode #5

Open premanandaembed opened 1 year ago

premanandaembed commented 1 year ago
with usb1.USBContext() as context:
    for device in context.getDeviceList():
        if int(0xXXXX) == device.getVendorID() and int(0x0001) == device.getProductID():
            dfu_device = dfu.DFU(dev.open())
            dfu_device.startDFU() 

Screenshot 2023-04-01 101553

how to convert normal mode to dfu mode.