Skip to content

Support added for Arduino Zero, M0, MKR family #99

@gdsports

Description

@gdsports

https://github.com/gdsports/ArduinoJoystickLibrary/tree/samd_patch

I added support for SAMD21 boards (Zero/M0 and MKR family). In addition, the changes work with the Adafruit Metro M4 board (SAMD51). There are so many SAMD boards from Arduino, Adafruit, and Sparkfun but I can only test with the small number of boards I have. In theory, all Arduino compatible SAMD21 boards should work but a lot depends on how closely the compatible boards track ArduinoCore-samd.

Tested: Arduino Zero, Arduino MKR Zero, and Adafruit Metro M4. The Adafruit board is based on the Microchip SAMD51 but it works.

This change does not use HID.h so it is different from PR #90. The change is patterned on the Arduino Due change.

It would be nice for someone to try the changes on my fork (note the changes are on a branch named samd_patch, not master) and report success or failure. Or I can submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions