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.
Fork of 4180_LSM9DS0_lab by
Revision 4:a9e3007530a7, committed 2015-01-26
- Comitter:
- aswild
- Date:
- Mon Jan 26 07:22:27 2015 +0000
- Parent:
- 3:6d7606db18e1
- Child:
- 5:942e184c4977
- Commit message:
- double checking that everything is updated
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 26 06:39:49 2015 +0000
+++ b/main.cpp Mon Jan 26 07:22:27 2015 +0000
@@ -5,28 +5,28 @@
#include "LSM9DS0.h"
#include "uLCD_4DGL.h"
-// uncomment this line to enable the uLCD for Part 3 of the lab
-//#define PART_3
+// uncomment this line to enable the uLCD for Part 4 of the lab
+//#define PART_4
// SDO_XM and SDO_G are pulled up, so our addresses are:
#define LSM9DS0_XM_ADDR 0x1D // Would be 0x1E if SDO_XM is LOW
#define LSM9DS0_G_ADDR 0x6B // Would be 0x6A if SDO_G is LOW
-// refresh time. set to 500 for part 2 and 50 for part 3
+// refresh time. set to 500 for part 2 and 50 for part 4
#define REFRESH_TIME_MS 500
// Verify that the pin assignments below match your breadboard
LSM9DS0 imu(p9, p10, LSM9DS0_G_ADDR, LSM9DS0_XM_ADDR);
Serial pc(USBTX, USBRX);
-#ifdef PART_3
+#ifdef PART_4
uLCD_4DGL lcd(p28, p27, p30);X
#endif
//Init Serial port and LSM9DS0 chip
void setup()
{
-#ifdef PART_3
+#ifdef PART_4
lcd.baudrate(3000000);
lcd.background_color(0);
lcd.cls();
