Advertisement
otakus

Untitled

Nov 10th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. void setup()
  2. {
  3. Wire.begin(); // join i2c bus (address optional for master)
  4. Serial.begin(115200); // start serial for output. Make sure you set your Serial Monitor to the same!
  5. setupAccel();
  6. setupGyro();
  7. setupMag();
  8. setupBar();
  9. }
  10.  
  11. void loop(){
  12. //Accel:
  13. readAccel();
  14. displayAccel();
  15. //Mag:
  16. readMagRaw();
  17. debugMag();
  18. //getHeading();
  19. //displayMag();
  20. //Gyro:
  21. readGyro();
  22. displayGyro();
  23. //Bar:
  24. readBar();
  25. displayBar();
  26. //Optical:
  27. readOpt();
  28. displayOpt();
  29.  
  30. Serial.println();
  31. //delay(10);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement