The following code is from a file named keyboard.ino.
It does not print "y" when in a folder with 20 other .cpp and .h files.
I want to test the 20 other files, and Arduino 1.0.5 compiles them with no complaints.
I copied the code into a new file and placed it in a folder with no other files.
The code printed "y" like it should.
What could cause the code to print in one folder and not the other?
I am using Teensy2.0 and Arduino 1.0.5 IDE on Windows 7.
Lines 3 through 21 are commented, "y" prints on lines 27 and 33:
Thanks for taking a look.
It does not print "y" when in a folder with 20 other .cpp and .h files.
I want to test the 20 other files, and Arduino 1.0.5 compiles them with no complaints.
I copied the code into a new file and placed it in a folder with no other files.
The code printed "y" like it should.
What could cause the code to print in one folder and not the other?
I am using Teensy2.0 and Arduino 1.0.5 IDE on Windows 7.
Lines 3 through 21 are commented, "y" prints on lines 27 and 33:
Code:
#include <Wire.h>
#include <Keyboard.h>
/*
#include "Keyb.h"
Keyb keyb;
void setup()
{
keyb.begin();
Keyboard.begin();
delay(2000);
Keyboard.write('Y');
}
void loop()
{
keyb.scan();
while (1) {}
}
*/
void setup()
{
Keyboard.begin();
delay(2000);
Keyboard.write('Y'); // Keyoard.begin() takes more than 1 second
}
void loop()
{
delay(1000);
Keyboard.press(KEY_Y);
Keyboard.release(KEY_Y);
}
Thanks for taking a look.