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
- Committer:
- aberk
- Date:
- 2010-11-27
- Revision:
- 1:6a040ee9e40b
- Parent:
- 0:4d5987f27ca4
File content as of revision 1:6a040ee9e40b:
#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());
}
}
ITG 3200 Gyroscope