Home > other >  How to use the arduino Leonardo virtual keyboard to print a serial port receives the data
How to use the arduino Leonardo virtual keyboard to print a serial port receives the data

Time:10-04

Everybody a great god help see where is wrong, write that right?
The measured result is I send a "1" virtual keyboard to print out a "130" or random Numbers

Void setup () {
//open the serial port:
Serial1. The begin (9600);
The rid_device_info_keyboard. The begin ();
}

Void loop () {
//check for incoming serial data:
If (Serial1. Available () & gt; 0 {
Char inChar=Serial1. Read ();
The rid_device_info_keyboard. Write (inChar);
}
}

CodePudding user response:

There will be someone there? There will be someone there?
  • Related