Hi,
Does anyone know if it possible to use a teensy USB to receive serial data (RS232) and then print something as a USB keyboard? If so how?
Thanks,
Sam
Moderators: adafruit_support_bill, adafruit
// This line defines a "Uart" object to access the serial port
HardwareSerial Uart = HardwareSerial();
void setup() {
Serial.begin(9600);
Uart.begin(9600);
}
void loop() {
if (Uart.available() > 0) {
char incomingByte = Uart.read();
Keyboard.write(incomingByte);
}
}Users browsing this forum: No registered users and 2 guests