I am recently seeing strange behavior in my Arduino Yun.
Just using the microcontroller, I enter the following:
#include <stdlib.h>
#include <string.h> // For string operations.
#include "Keyboard.h"
#include "Mouse.h"
void setup() {
Keyboard.begin();
Keyboard.println("Hello world.");
Keyboard.print("Hello world.");
}
Rather than getting two lines as expected, I get Hello world.Hello world..
It is a very strange error because println (docs) is so 'core' to Keyboard function. I've never had this issue before and I've been playing with it for months. I am running IDE 1.6.11.
A possibly relevant detail
I had this working on my Yun months ago without the #include "Keyboard.h" and #include "Mouse.h". I opened the IDE again just recently and, upon compiling, it failed saying I needed to add those lines. So I did, and it now println doesn't work.
printlndocs in the question.