Serial communication and HID

Status
Not open for further replies.

1461748123

New member
Hi!
I'm currently working on a project which require teensy to be a HID device but at the same time recieve commands from serial port. Will this be possible?
I'm thinking that I need to use the serial pins on the board to communicate and the micro usb as HID.
 
project which require teensy to be a HID device but at the same time recieve commands from serial port. Will this be possible?
I'm thinking that I need to use the serial pins on the board to communicate and the micro usb as HID.

Yes, this is possible. When using Arduino with Teensy selected, the Tools > USB Type menu controls which type of USB device Teensy becomes when your code uploads.

Some of the options have USB serial and also HID interfaces.

All of them can work together with the regular hardware serial ports (1 on old Teensy 2.0, 3 of them on Teensy LC & 3.2, and 6 of them on Teensy 3.5 & 3.6). Details here:

https://www.pjrc.com/teensy/td_uart.html

All of these hardware serial ports are independent of the USB (nothing like Arduino Uno) and can have simultaneous data flow while you're using the USB to communicate.
 
Status
Not open for further replies.
Back
Top