Urm didnt i write this already? Mostly same as georges code, except: buffer and sensor reads in seperate threads (Not Main) some other bits

Dependencies:   BMP280

Fork of Sample_LCD_Serial_Buffer by BDG

Revision:
0:cb3a5c15b01e
Child:
7:f017a37bcf1b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Tue Dec 12 17:05:59 2017 +0000
@@ -0,0 +1,30 @@
+#include "LCD.h"
+#include "BMP280.h"
+
+extern LCD lcd;
+extern BMP280 sensor;
+
+
+#define ON 1
+#define OFF 0
+
+/* External LEDs as Open Drain */
+DigitalOut Red_ext      (PE_15); 
+DigitalOut Yellow_ext   (PB_10);
+DigitalOut Green_ext    (PB_11);
+
+/* Configure On-board LEDS */
+DigitalOut Green_int (LED1);
+DigitalOut Blue_int (LED2);
+DigitalOut Red_int (LED3);
+
+/* Configure Digital In Switches */
+DigitalIn SW_L (PE_12);
+DigitalIn SW_R (PE_14);
+
+/* Configure Analogue Pins  */
+/* Analogue IN */
+AnalogIn LDR_In (PA_0);
+
+/* Congfigure Serial interface */
+Serial pc(USBTX, USBRX);
\ No newline at end of file