Skip to content

pundang/serial_keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serial Keyboard emulator for Windows

Originally made for CH340, this program is a keyboard emulator for Windows. It allows you to send keystrokes to your computer by connecting a serial device and sending data to it.

Notes

  • Works at 230400 baud
  • The program translates the serial data into keystrokes and sends them to the operating system following the Microsoft's VK key codes.

Example Usage (Arduino)

void setup() {
    Serial.begin(230400);
}

int hKey = 0x48; // H
int iKey = 0x49; // I

void loop() {
    Serial.write(hKey);
    Serial.write(iKey);

    // OUTPUT: "HI"

    while(true) {
        // Do nothing
    }
}

Example result

About

Translates serial codes to Keyboard codes in Windows

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors