Skip to content

How to print bslash  #23

Closed
Closed
@ArduinoMasterInfernal

Description

@ArduinoMasterInfernal

hi, i'm trying to print bslash ( \ )

i have try many syntax but it not work, do you know what to forget?

#include <Keyboard.h>

char altKey = KEY_RIGHT_ALT;

void setup() {
  Keyboard.begin();
}

void loop() {
  delay(5000);
  Keyboard.press(altKey);
  Keyboard.press(38);
  delay(100);
  Keyboard.press(0x26);
  Keyboard.releaseAll();
  Keyboard.print("005C");
  Keyboard.write(92);
  Keyboard.write(0x5C);
  Keyboard.write(38);
  Keyboard.write(49);
  // wait for new window to open:
  delay(1000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions