![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Fork of ITG3200_HelloWorld by
main.cpp
- Committer:
- ryosuke
- Date:
- 2014-04-30
- Revision:
- 2:6ab9a5b039d1
- Parent:
- 1:6a040ee9e40b
File content as of revision 2:6ab9a5b039d1:
#include "ITG3200.h" Serial pc(USBTX, USBRX); ITG3200 gyro(p9, p10); int main() { pc.printf("Now starting ITG-3200 test...\n"); //Set highest bandwidth. gyro.setLpBandwidth(LPFBW_42HZ); while (1) { //Arbitrary wait for printf clarity. wait(0.1); pc.printf("%i, %i, %i\n", gyro.getGyroX(), gyro.getGyroY(), gyro.getGyroZ()); } }