Network, SD card, Serial, LCD and sensors all work! :) ** Don't Press the User Button without an SD Card inserted!! **

Dependencies:   BMP280

Fork of Thread_Communication_V2 by BDG

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);