In trying to use a CPX as a USB HID device on an iPhone or iPad, I’m getting this error:
“CANNOT USE ACCESSORY
CPlay Express (app): This accessory requires too much power.”
I believe there is a USB report descriptor that can be set to a value that makes the phone/tablet happy, as I’ve had Circuit Playground Express running CircuitPython code in the past.
You can see the different reports on a Mac in System Report for a Circuit Playground Express running MakeCode vs. CircuitPython, on the MakeCode board there is a “Current Required (mA):500” line that may be causing the problem.
CPlay Express (app): Product ID: 0x2402 Vendor ID: 0x03eb (Atmel Corporation) Version: 42.02 Serial Number: 1318705658 Speed: Up to 12 Mb/sec Manufacturer: CPlay Express (app) Location ID: 0x14100000 / 10 Current Available (mA): 500 Current Required (mA): 500 Extra Operating Current (mA):0
CircuitPlayground Express: Product ID:0x8019 Vendor ID:0x239a Version:1.00 Serial Number:8E1438657525D4050213E25354D1E0FF Speed:Up to 12 Mb/sec Manufacturer:Adafruit Industries LLC Location ID:0x14100000 / 14 Current Available (mA):500 Extra Operating Current (mA):0