Simple analog input and LCD 4 bit Example reading a LM35. Tested in BluePill board

Dependencies:   mbed TextLCD

Revision:
1:e10c603cf0ae
Parent:
0:271d74b09d64
Child:
2:93417af6f469
--- a/main.cpp	Sun Jan 15 11:07:07 2017 +0000
+++ b/main.cpp	Tue Feb 05 14:00:02 2019 +0000
@@ -1,22 +1,17 @@
 /* Hello World! for the TextLCD Enhanced Library*/
 
-#include "stm32f103c8t6.h"
 #include "mbed.h"
 #include "TextLCD.h"
 
+// Host PC Communication channels
+Serial  pc(PA_2, PA_3);     // tx, rx
+
+// LCD instantiation
+TextLCD lcd(PA_8, PA_9, PA_10, PA_11, PA_12, PA_15, TextLCD::LCD16x2);  // 4-bit bus: RS, E, D4, D5, D6, D7
+Timer   t;
 
 int main()
-{
-    confSysClock();     // configure system clock (72MHz HSE clock, 48MHz USB clock)
-    
-    // Host PC Communication channels
-    Serial  pc(PA_2, PA_3);     // tx, rx
-
-    // LCD instantiation
-    TextLCD lcd(PA_8, PA_9, PA_10, PA_11, PA_12, PA_15, TextLCD::LCD16x2);  // 4-bit bus: RS, E, D4, D5, D6, D7
-    Timer   t;
-
-    
+{     
     pc.printf("TextLCD Enhanced Test. Columns=%d, Rows=%d\n\r", lcd.columns(), lcd.rows());
 
     for (int row = 0; row < lcd.rows(); row++) {