Final version of program with changed pin for PWM, freq for led and bluetooth comma seperated values

Dependencies:   mbed TextLCD

Revision:
7:871a3d9dc680
Parent:
6:22673b8098a0
--- a/main.cpp	Wed Nov 28 01:22:24 2018 +0000
+++ b/main.cpp	Fri Nov 30 03:53:40 2018 +0000
@@ -3,7 +3,7 @@
 TextLCD lcd(PTC7,PTC0,PTC3,PTC4,PTC5,PTC6);
 AnalogIn temp_sen(A0);
 AnalogIn light_sen(A1);
-PwmOut pwm(A2);
+PwmOut pwm(PTE20);
 PwmOut led_o(PTB18);
 Serial mobile(PTE22, PTE23);
 DigitalIn enter(D8);
@@ -31,7 +31,7 @@
         //modeProcess();
         if (state == 0) {
             mainScreen();
-            mobile.printf("temp: %i fan: %i light: %i \n",temp_measure, fanLevel_dis, lightLevel_dis);
+            mobile.printf("%i,%i,%i\n",temp_measure,fanLevel_dis,lightLevel_dis);
             //mobile.printf("%i",temp_measure);
         }
         if (state == 1) {