This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
|
digispark:tutorials:9dof [2015/01/12 17:56] digistump |
digispark:tutorials:9dof [2015/01/12 21:59] defragster startup delay and notepad note |
||
|---|---|---|---|
| Line 61: | Line 61: | ||
| Example can be found in File->Examples->Digispark_Examples->_9DOF_Shield | Example can be found in File->Examples->Digispark_Examples->_9DOF_Shield | ||
| - | <code> | + | <code arduino> |
| #include <Wire.h> | #include <Wire.h> | ||
| #include <DigiKeyboard.h> | #include <DigiKeyboard.h> | ||
| Line 75: | Line 75: | ||
| int gyroHX = 0; //HX value from Gyro | int gyroHX = 0; //HX value from Gyro | ||
| int gyroHY = 0; //HY value from Gyro | int gyroHY = 0; //HY value from Gyro | ||
| - | int gyroHZ = 0; //HZ value from Gyro4097 | + | int gyroHZ = 0; //HZ value from Gyro |
| void setup() | void setup() | ||
| { | { | ||
| Line 85: | Line 85: | ||
| | | ||
| initGyro(); | initGyro(); | ||
| - | | + | |
| + | DigiKeyboard.delay(1000); // Open Notepad (or similar) and make sure it has the focus | ||
| + | | ||
| } | } | ||