You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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");
}
The text was updated successfully, but these errors were encountered: