Skip to content

oTSTo/Keyboard-Emulating-ESP32-S3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Keyboard-Emulating-ESP32-S3

License: MIT

Description

The code creates a bluetooth bispositive that emulates the keyboard

Features

Feature Description
Emulation of a specific key You can emulate a specific key for example 0xE3<-- is the windwos key
Writing text You can emulate the keybord for writing text

MUST-HAVE

WHAT YOU CAN CHANGE

Inside the code you can change

  • The button pin for trigger the emulation
  • The name that the bluetooth device will have
  • The message you will send
  • Ande the specific key you want emulate
#define BUTTON_PIN 
#define DEVICE_NAME "ESP32 Keyboard"
#define MESSAGE "Hello from ESP32\n"  // Message to type
// The rest of the code

void loop()
{
  if (digitalRead(BUTTON_PIN) == LOW)
  {
    if (isBleConnected)
    {
      // Example: Press the Windows key
      pressFunctionKey(0xE3);  // 0xE3 is the HID code for the Windows key
      //typeText(MESSAGE);
    }
  }
}

ESSENTIAL LIBRARIES

About

This code allows you to emulate the keyboard keys via an ESP32-S3 creating a bluetooth device

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published