Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

USB HID on iPad (iOS)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: USB HID on iPad (iOS)

by kmevans on Sun Aug 30, 2020 11:51 pm

Dan - thanks a lot. I will try doing a build. I already have a build environment setup, so it should be easy. I'll try tomorrow morning.

kmevans
 
Posts: 44
Joined: Mon Feb 06, 2017 4:32 pm

Re: USB HID on iPad (iOS)

by kmevans on Mon Aug 31, 2020 1:19 am

Ok - I couldn't resist a quick build and testing. It looks like this fixes it. I'll try to control iOS minecraft tomorrow and that should be a pretty good test + verifying that the MSC still mounts.

kmevans
 
Posts: 44
Joined: Mon Feb 06, 2017 4:32 pm

Re: USB HID on iPad (iOS)

by hathach on Mon Aug 31, 2020 4:07 am

Right, iOS won't accept generic gamepad either with usb or ble. Apple reall restrict what csn connect to their ios. However, I think ps4 controller can connect and work well with iOS. Maybe it is worth to take a look at how ps4 controller present itself.

https://support.playstation.com/s/artic ... uage=en_US

hathach
 
Posts: 1108
Joined: Tue Apr 23, 2013 1:02 am

Re: USB HID on iPad (iOS)

by kmevans on Mon Aug 31, 2020 2:02 pm

As far as I can tell this is fine, and I was able to use the mouse and keyboard. I got a little sidetracked because it wasn't working in iOS Minecraft, but apparently this is an issue with the app itself. There are forum threads about it. I verified that a USB mouse/keyboard and Apples own BLE keyboard don't work for iOS Minecraft either.

kmevans
 
Posts: 44
Joined: Mon Feb 06, 2017 4:32 pm

Re: USB HID on iPad (iOS)

by nineseventytwo on Sun Sep 13, 2020 8:32 pm

I've read thru this entire post and would like to use CircuitPython running on an ItsyBitsy M4 Express as a keyboard and mouse. I've used CircuitPython version 3 susessfully in the past to do this but I'm revisiting this project and updated to CircuitPython 6. I'm running into the same problem with it not functioning on IOS as a keyboard. I can follow that I would need to change a line to not include GAMEPAD. Can you point me in the right direction on how to do this? I'm basically inexperienced.

nineseventytwo
 
Posts: 22
Joined: Tue Aug 02, 2016 4:20 pm

Re: USB HID on iPad (iOS)

by kmevans on Sun Sep 13, 2020 8:54 pm

Start here and see if this is too much for you to do: https://learn.adafruit.com/building-circuitpython
If not then you can edit mpconfigboard.mk as described above. The one I edited was in ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.mk. You can look at a copy here https://github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.mk

If it's too complicated then perhaps someone else could build it for you.

kmevans
 
Posts: 44
Joined: Mon Feb 06, 2017 4:32 pm

Re: USB HID on iPad (iOS)

by nineseventytwo on Sun Sep 13, 2020 9:12 pm

Thanks for the quick reply. I'm half way through the how to build CircuitPython tutorial. Thanks for the link. So the file I'm changing should look like this then?
Code: Select all | TOGGLE FULL SIZE
USB_VID = 0x239A
USB_PID = 0x802C
USB_PRODUCT = "ItsyBitsy M4 Express"
USB_MANUFACTURER = "Adafruit Industries LLC"

CHIP_VARIANT = SAMD51G19A
CHIP_FAMILY = samd51

QSPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 1
EXTERNAL_FLASH_DEVICES = GD25Q16C
LONGINT_IMPL = MPZ

# No I2S on SAMD51G
CIRCUITPY_AUDIOBUSIO = 0

CIRCUITPY_BITBANG_APA102 = 1
USB_HID_DEVICES=KEYBOARD,MOUSE,CONSUMER

nineseventytwo
 
Posts: 22
Joined: Tue Aug 02, 2016 4:20 pm

Re: USB HID on iPad (iOS)

by kmevans on Sun Sep 13, 2020 9:24 pm

That looks correct to me.

kmevans
 
Posts: 44
Joined: Mon Feb 06, 2017 4:32 pm

Re: USB HID on iPad (iOS)

by nineseventytwo on Sun Sep 13, 2020 9:39 pm

Thank you so much! I was able to build firmware, and it actually worked.

nineseventytwo
 
Posts: 22
Joined: Tue Aug 02, 2016 4:20 pm

Re: USB HID on iPad (iOS)

by kmevans on Sun Sep 13, 2020 9:42 pm

Great!

kmevans
 
Posts: 44
Joined: Mon Feb 06, 2017 4:32 pm

Please be positive and constructive with your questions and comments.