Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samd21 boards #283

Open
aelio opened this issue Jan 17, 2024 · 6 comments
Open

Samd21 boards #283

aelio opened this issue Jan 17, 2024 · 6 comments

Comments

@aelio
Copy link

aelio commented Jan 17, 2024

Samd21 boards

Hi, I've made minor changes to get the library working on Trinket M0, probably it shall work on other samd boards as well.
I used Gary Grewal's MIDIUSB as reference for accessing the platform's USB api.
It probably needs some graceful integration, here are the files
dynamichid.zip

@relaxibus
Copy link

XIAO SAMD21? I didn't understood if the USB is a native USB or just TTL to USB.

@aelio
Copy link
Author

aelio commented Jan 17, 2024

USB via USB/PluggableUSB.h, IC is ATSAMD21E18 32-bit Cortex M0+ on this board.
Idk if this is native or whatever, I am not an expert, just added some defines to get it working

@relaxibus
Copy link

relaxibus commented Jan 17, 2024

so using native gpos or a SPI to ADC and I2C to GPIO expander we could have a nice solution for a joystick setup using the XIAO?
Looking to substitute the https://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=316

@NNGB-kor
Copy link

Yes. This seems to work with Xioa's SAMD21.
I've compiled and uploaded a simple example.
It recognizes it as a joystick.

@relaxibus
Copy link

Oh, that's really great!!! Could you send me the example? How did you uploaded to the Xiao?
May be you could also (I'm not a coder) try the above idea using native gpios or a SPI to ADC and I2C to GPIO expander?

@carramar
Copy link

Yes. This seems to work with Xioa's SAMD21. I've compiled and uploaded a simple example. It recognizes it as a joystick.

can you post how you got it to work please? im trying to get this to work on arduino zero (SAMD21) and cant get it to recognise as anything

This was referenced Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants