Skip to content

Weird double output with DigiKeyboard.h #29

@mateeees

Description

@mateeees

Hi, I have a really weird problem, I don't know if it is my code or it is a bug. When I use DigiKeyboard.sendKeyStroke or DigiKeyboard.print it always prints the output a second time after a second or two. Also when I upload the code onto the digispark, disconnect it, and connect it again it just randomly prints the output.

An example: (I am trying to open Spotify using macropad)
DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT); DigiKeyboard.delay(1000); DigiKeyboard.print("spotify"); DigiKeyboard.delay(1000); DigiKeyboard.sendKeyStroke(KEY_ENTER);

It prints "spotify" twice, and also when I plug in the digispark. It is so random.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions