
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
main.h
- Committer:
- benparkes
- Date:
- 2017-12-12
- Revision:
- 0:cb3a5c15b01e
- Child:
- 7:f017a37bcf1b
File content as of revision 0:cb3a5c15b01e:
#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);