Skip to content

Question: How can I change the USB requested power ? #22

@rjkorn

Description

@rjkorn

I noticed my micro (32u4) device reports it needs 500ma only when the library is used. That upsets one of my computers. Actual current use is 50-60ma for my circuit. Is there and easy way to redefine it?

when it enumerates as MIDI it says:
Current Required (mA): 500

The initial bootloader says:
Current Required (mA): 100

The defines I'd like to mimic are:

#define USB_CFG_IS_SELF_POWERED 0
/* Define this to 1 if the device has its own power supply. Set it to 0 if the

  • device is powered from the USB bus.
    */

#define USB_CFG_MAX_BUS_POWER 100
/* Set this variable to the maximum USB bus power consumption of your device.

  • The value is in milliamperes. [It will be divided by two since USB
  • communicates power requirements in units of 2 mA.]
    */

Thank you for any insight....

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions