Hello friends,
my project plan: To connect my USB mouse to Teensy 4.0 via USB Host, and let the Teensy forward all incoming mouse data to the computer, like a "passthrough". I soldered a USB A Female cable to the Teensy for USB Host support.
I'm measuring ~4.78 V. The mouse lights up, but my Teensy is not getting any data.
Here's my (very simple) testing code. I'm using USBHost_t36. Is anything wrong with it maybe?
Let me know if you have any ideas =)
Felix
my project plan: To connect my USB mouse to Teensy 4.0 via USB Host, and let the Teensy forward all incoming mouse data to the computer, like a "passthrough". I soldered a USB A Female cable to the Teensy for USB Host support.
I'm measuring ~4.78 V. The mouse lights up, but my Teensy is not getting any data.
Here's my (very simple) testing code. I'm using USBHost_t36. Is anything wrong with it maybe?
Code:
#include "USBHost_t36.h"
USBHost usbHost;
MouseController mouseController(usbHost);
void setup() {
Serial.begin(9600);
Serial.println("Init");
usbHost.begin();
}
void loop() {
usbHost.Task();
if (mouseController.available())
{
Serial.println("Juhu!");
mouseController.mouseDataClear();
}
}
Let me know if you have any ideas =)
Felix