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.
Diff: main.cpp
- Revision:
- 23:0baaa24e04d8
- Parent:
- 22:dbd5c4af83d6
- Child:
- 24:e8fd339db02e
--- a/main.cpp Sun Jan 11 14:04:58 2015 -0500 +++ b/main.cpp Sun Jan 11 19:54:10 2015 +0000 @@ -15,17 +15,17 @@ int main() { //initialize each IC - //init_adxl345(i2c); + init_adxl345(i2c); init_itg3200(i2c); - //init_hmc5883(i2c); + init_hmc5883(i2c); while(1) { //read from each IC - //read_adxl345(i2c, accelerometer_data); - //pc.printf("ACCEL: %i\t%i\t%i", accelerometer_data[0], accelerometer_data[1], accelerometer_data[2]); + read_adxl345(i2c, accelerometer_data); + pc.printf("ACCEL: %i\t%i\t%i", accelerometer_data[0], accelerometer_data[1], accelerometer_data[2]); read_itg3200(i2c, gyro_data); pc.printf("GYRO: %i\t%i\t%i", gyro_data[0], gyro_data[1], gyro_data[2]); - //read_hmc5883(i2c, magnetometer_data); - //pc.printf("Magnet: %i\t%i\t%i", magnetometer_data[0], magnetometer_data[1], magnetometer_data[2]); + read_hmc5883(i2c, magnetometer_data); + pc.printf("Magnet: %i\t%i\t%i", magnetometer_data[0], magnetometer_data[1], magnetometer_data[2]); } } \ No newline at end of file