amowry
April 17, 2018, 2:32pm
1
Has anyone successfully used this library with an ipad/iphone? I get a message saying that he device uses too much power, even though it only uses around 10 ma. Using the same device (ItsyBitsy3v) with TeeOnArdu MIDI works fine with my ipad, butnI’d rather just use The library. Thanks!
amowry
April 17, 2018, 4:08pm
2
I found a solution here:
/*
* MIDIUSB 1x1 interface, works with iPad.
*
* Currently tested boards are Arduino Micro, Leonardo.
* Not tested on Due but should work as well.
*
* Important Note: needs D_CONFIG macro in USBCore.h to be patched to change USB_CONFIG_POWER_MA(500)
* with a lower value (i.e 20) in order to work with iPad, as it is bus powered by the tablet.
*
* Created: October, 11 2016
* Author: Fabien
* License: GPL V3 © 2016 Fabien (https://github.com/fab672000)
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
This file has been truncated. show original
The USB power configuration setting has to be changed to a lower value. I changed it to 20 ma and it's working great now.