sensor

Files at this revision

API Documentation at this revision

Comitter:
Joelpallent
Date:
Fri Nov 30 13:11:51 2018 +0000
Parent:
6:d95616e645bb
Commit message:
sensor;

Changed in this revision

sample_hardware.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/sample_hardware.cpp	Thu Nov 23 14:01:24 2017 +0000
+++ b/sample_hardware.cpp	Fri Nov 30 13:11:51 2018 +0000
@@ -28,10 +28,10 @@
 void post() 
 {
     //POWER ON TEST (POT)
-    puts("**********STARTING POWER ON SELF TEST (POST)**********");
+ //   puts("**********STARTING POWER ON SELF TEST (POST)**********");
     
     //Test LEDs
-    puts("ALL LEDs should be blinking");
+ /*  puts("ALL LEDs should be blinking");
     for (unsigned int n=0; n<10; n++) {
         redLED    = 1;
         yellowLED = 1;
@@ -42,7 +42,7 @@
         greenLED  = 0;     
         wait(0.05);         
     } 
-    
+  */  
     //Output the switch states (hold them down to test)
     printf("SW1: %d\tSW2: %d\n\r", SW1.read(), SW2.read());    
     
@@ -51,19 +51,19 @@
     
     //Read Sensors (I2C)
     float temp = sensor.getTemperature();
-    float pressure = sensor.getPressure();
+   // float pressure = sensor.getPressure();
     #ifdef BME
     float humidity = sensor.getHumidity();
     #endif
    
     //Display in PuTTY
-    printf("Temperature: %5.1f\n", temp);
-    printf("Pressure: %5.1f\n", pressure);
+    printf("Temperature: %5.1f\n\r", temp);
+  //  printf("Pressure: %5.1f\n\n\r", pressure);
     #ifdef BME
-    printf("Pressure: %5.1f\n", humidity);
+    printf("humidity: %5.1f\n\r", humidity);
     #endif
     
-    puts("**********POST END**********");
+//    puts("**********POST END**********\n\r");
  
 }