Can someone please post an example of how to do this ?
I'm confused over the number of endpoints I need; where the unique number is for each interface (is it 'PRODUCT_ID') ? Is DEVICE_CLASS necessary ?
Also, I'm running on MacOS Catalina and changes I make to usb_desc.h don't show up in the Tools..USB Type menu. (Edit -- it seems I also have to edit boards.txt). If I edit these files, won't they get overwritten the next time I update Teensyduino ? Can I replace usb_desc.h in my project directory ? or the new pieces of it in my .ino file ?
I just want a USB type that has Serial + Keyboard (a simple keyboard; media keys not necessary).
I want my application to work as a USB keyboard in an iPhone, (and also have a serial port, although that's not for the iPhone) but the iPhone seems to complain about the joystick also included in the USB device.