Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "ITG3200.h" 00002 00003 Serial pc(USBTX, USBRX); 00004 ITG3200 gyro(p9, p10); 00005 00006 int main() { 00007 00008 pc.printf("Now starting ITG-3200 test...\n"); 00009 00010 //Set highest bandwidth. 00011 gyro.setLpBandwidth(LPFBW_42HZ); 00012 00013 while (1) { 00014 00015 //Arbitrary wait for printf clarity. 00016 wait(0.1); 00017 pc.printf("%i, %i, %i\n", gyro.getGyroX(), 00018 gyro.getGyroY(), gyro.getGyroZ()); 00019 00020 } 00021 00022 }
Generated on Wed Jul 13 2022 09:32:22 by
