HID icon indicating copy to clipboard operation
HID copied to clipboard

Arduino Zero Compatibility?

Open GamerSocke opened this issue 3 years ago • 5 comments

Hi, After flashing the following code to the Zero via the native USB port, it does not show up as a gamepad like the Uno with the Hoodloader2. Is there anything I need to be aware of when using the Zero?

#include "HID-Project.h"
void setup() {
    analogReadResolution(12);
    Gamepad.begin();
}

void loop() {
    int data = analogRead(A0);
    Gamepad.rxAxis(data);
    Gamepad.write();
    delay(10);
}

GamerSocke avatar May 24 '22 17:05 GamerSocke

I don't know. I remember such a bug report, but I cannot find it.

NicoHood avatar May 24 '22 20:05 NicoHood

How can I investigate the problem further, do you have any idea what I could start with?

GamerSocke avatar May 25 '22 17:05 GamerSocke

Does the bootkeyboard work? Does the official arduino keyboard library work?

NicoHood avatar May 27 '22 08:05 NicoHood

I have a same question too, looks like neither RawHID and Joystick works properly on SAMD21. But NKROKeyboard and mouse works fine.

hlcm0 avatar Jun 22 '22 09:06 hlcm0

For SAMD21, maybe you will have better luck with another library. https://github.com/adafruit/Adafruit_TinyUSB_Arduino

I have no isssues running the example here from hidapitester. https://github.com/todbot/hidapitester/tree/master/test_hardware/hidtest_tinyusb

mcuee avatar Jun 17 '23 10:06 mcuee