User Tools

Site Tools


digispark:tutorials:9dof

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
digispark:tutorials:9dof [2015/01/12 17:56]
digistump
digispark:tutorials:9dof [2016/06/09 12:03] (current)
Line 31: Line 31:
 =====Assembly:​===== =====Assembly:​=====
  
 +**NOTE:** Before you start: If you have a multimeter check for shorts between the GND pin hole and the other pin holes - if you find any please send us an email at support at digistump dot com and we will replace the board.
  
 [[https://​s3.amazonaws.com/​digispark/​images/​m/​9dof1.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​9dof1.JPG}}]] [[https://​s3.amazonaws.com/​digispark/​images/​m/​9dof1.JPG|{{https://​s3.amazonaws.com/​digispark/​images/​t/​9dof1.JPG}}]]
Line 61: Line 62:
  
 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 76:
 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 86:
     ​     ​
     initGyro();     initGyro();
-    ​+ 
 +    DigiKeyboard.delay(1000); ​   // Open Notepad (or similar) and make sure it has the focus 
 +  ​
 } }
  
digispark/tutorials/9dof.1421114204.txt.gz · Last modified: 2015/01/12 17:56 by digistump