Buffer working with LCD, Serial and SD Card

Dependencies:   BMP280

Fork of Thread_Communication by BDG

Committer:
benparkes
Date:
Tue Dec 12 17:05:59 2017 +0000
Revision:
0:cb3a5c15b01e
Child:
7:f017a37bcf1b
Working No Mail que

Who changed what in which revision?

UserRevisionLine numberNew contents of line
benparkes 0:cb3a5c15b01e 1 #include "LCD.h"
benparkes 0:cb3a5c15b01e 2 #include "BMP280.h"
benparkes 0:cb3a5c15b01e 3
benparkes 0:cb3a5c15b01e 4 extern LCD lcd;
benparkes 0:cb3a5c15b01e 5 extern BMP280 sensor;
benparkes 0:cb3a5c15b01e 6
benparkes 0:cb3a5c15b01e 7
benparkes 0:cb3a5c15b01e 8 #define ON 1
benparkes 0:cb3a5c15b01e 9 #define OFF 0
benparkes 0:cb3a5c15b01e 10
benparkes 0:cb3a5c15b01e 11 /* External LEDs as Open Drain */
benparkes 0:cb3a5c15b01e 12 DigitalOut Red_ext (PE_15);
benparkes 0:cb3a5c15b01e 13 DigitalOut Yellow_ext (PB_10);
benparkes 0:cb3a5c15b01e 14 DigitalOut Green_ext (PB_11);
benparkes 0:cb3a5c15b01e 15
benparkes 0:cb3a5c15b01e 16 /* Configure On-board LEDS */
benparkes 0:cb3a5c15b01e 17 DigitalOut Green_int (LED1);
benparkes 0:cb3a5c15b01e 18 DigitalOut Blue_int (LED2);
benparkes 0:cb3a5c15b01e 19 DigitalOut Red_int (LED3);
benparkes 0:cb3a5c15b01e 20
benparkes 0:cb3a5c15b01e 21 /* Configure Digital In Switches */
benparkes 0:cb3a5c15b01e 22 DigitalIn SW_L (PE_12);
benparkes 0:cb3a5c15b01e 23 DigitalIn SW_R (PE_14);
benparkes 0:cb3a5c15b01e 24
benparkes 0:cb3a5c15b01e 25 /* Configure Analogue Pins */
benparkes 0:cb3a5c15b01e 26 /* Analogue IN */
benparkes 0:cb3a5c15b01e 27 AnalogIn LDR_In (PA_0);
benparkes 0:cb3a5c15b01e 28
benparkes 0:cb3a5c15b01e 29 /* Congfigure Serial interface */
benparkes 0:cb3a5c15b01e 30 Serial pc(USBTX, USBRX);