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:
- 4:dd5899b3eb3b
- Parent:
- 3:1238aecec770
--- a/main.cpp Tue Mar 06 14:28:15 2018 +0000 +++ b/main.cpp Fri Mar 09 16:46:27 2018 +0000 @@ -15,12 +15,12 @@ pc.printf("starting program\n\r"); - /* Prints out registrys + //Prints out registrys // Use for demo while(1) { mpl3115_reg_print(0,0); } - */ + //Test is getID returns the correct value and we are getting good readings pc.printf("\n\r*** MPL3115A2 Pressure/Temperature Sensor Test *** \n\r"); @@ -61,7 +61,7 @@ } } } - wait_ms(500); // Half a minute is spent between each measure + wait_ms(500); // Half a second is spent between each measure } } @@ -113,7 +113,7 @@ for (int i = start; i < end; i++) { pressure_sensor.readRegs(i,&data,8); pc.printf("%#04x: %s=%#04x\n\r", i, regNames[i], data); // Print register - wait_ms(500); + wait_ms(50); } return 0; } \ No newline at end of file