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

HID-compliant Touchscreen #22

Open
ErinaceusLinnaeus opened this issue Nov 14, 2018 · 1 comment
Open

HID-compliant Touchscreen #22

ErinaceusLinnaeus opened this issue Nov 14, 2018 · 1 comment

Comments

@ErinaceusLinnaeus
Copy link

I'm trying to use a touchscreen (7" by waveshare) on the Due's USB Port. But it doesn't work.
I tried a mouse, that worked. I tried the touchscreen on a pc, that worked.
On the pc the touchscreen appeared as a HID-compliant Touchscreen. Because I thought it would be recognized as a mouse.
I suspect that that's why my code doesn't respond to it.

Maybe Touchscreen Data is different and we/I need a separate TouchscreenController.h/.cpp for this?

The code is just notifying to the serial monitor:

void mouseMoved() {
Serial.println("mouseMoved");
}
void mouseDragged() {
Serial.println("mouseDragged");
}
void mousePressed() {
Serial.println("mousePressed");
}
void mouseReleased() {
Serial.println("mouseReleased");
}

@ErinaceusLinnaeus
Copy link
Author

I want to understand how the library works, so I can do something myself.
Can someone please give me a hint, where I can intercept the packets that should come in through the USB port?
I think I found some specification on how touchscreens pack their data and what I can expect to get.

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

1 participant