Duckuino: Your compiler is totally buggy

  1. You added the typeKey utility function in the end of the payload so it will not run… Fix: Add it to the beginning of the payload/script (before the void setup(){...};).
  2. You don’t have support for PAGEUP/PAGEDOWN.
  3. You didn’t add #include <Keyboard.h> and/or #include <Mouse.h> at the beginning of the payload.

As it seems, you probably don’t even have a atmega32u4 board to test your script.

I’ve fixed all of the above in my repository.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Ok i’ll fix i said, don’t get angry…

a7330f6 resolved it.

My bad, i updated my arduino ide version and it works…

Again, stop bullshiting… Just fix your shit…

Nope, i’ve tested ^^ No error. With this:

/*
 * Generated with <3 by Dckuino.js, an open source project !
 */

// Init function
void setup()
{
  // Begining the stream
  Keyboard.begin();

  // Waiting 500ms for init
  delay(500);

  typeKey(108);

  Keyboard.print("My name is");
}

void typeKey(int key)
{
  Keyboard.press(key);
  delay(50);
  Keyboard.release(key);
}

// Unused
void loop() {}