Go Down

Topic: USB Host Library 2.0 - What is the proper way to completely shutdown/restart? (Read 153 times) previous topic - next topic


I'm using the USB Host Library's HIDBoot<HID_PROTOCOL_KEYBOARD> to read from a barcode scanner as is described here:  https://www.circuitsathome.com/mcu/connecting-barcode-scanner-arduino-usb-host-shield .  I was hoping there was a straightforward way to detach the device then reinitialize the library.  I've tried simply pulling the MAX3421 reset pin low and then high again, then calling Usb.Init(),  but this doesn't seem to be reliable.  I was hoping there was a cleaner way via software to simulate unplugging the barcode reader and plugging back in.



Go Up