Adds POST test for BMP280 sensor board. Includes driver
Dependencies: BMP280 ELEC350-Practicals-FZ429 BME280
Fork of Task690-mbed-os-FZ429ZI by
Diff: main.cpp
- Revision:
- 4:04cd5171c7ff
- Parent:
- 3:22e5460a8b42
- Child:
- 5:0fe69963f1dd
--- a/main.cpp Thu Nov 23 10:54:42 2017 +0000
+++ b/main.cpp Thu Nov 23 14:03:12 2017 +0000
@@ -77,32 +77,3 @@
wait(0.1);
}
}
-
- /*
- printf("sd size: %llu\n", sd.size());
- printf("sd read size: %llu\n", sd.get_read_size());
- printf("sd program size: %llu\n", sd.get_program_size());
- printf("sd erase size: %llu\n", sd.get_erase_size());
-
- // set the frequency
- if ( 0 != sd.frequency(5000000)) {
- printf("Error setting frequency \n");
- }
-
- if ( 0 != sd.erase(0, sd.get_erase_size())) {
- printf("Error Erasing block \n");
- }
-
- // Write some the data block to the device
- if ( 0 == sd.program(block, 0, 512)) {
- // read the data block from the device
- if ( 0 == sd.read(block, 0, 512)) {
- // print the contents of the block
- printf("%s", block);
- }
- }
-
- // call the SDBlockDevice instance de-initialisation method.
-
- sd.deinit();
- */
\ No newline at end of file
