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
Diff: main.h
- Revision:
- 8:ab6322afa341
- Parent:
- 7:f017a37bcf1b
- Child:
- 9:b838c5787ed7
diff -r f017a37bcf1b -r ab6322afa341 main.h --- a/main.h Thu Dec 28 19:32:22 2017 +0000 +++ b/main.h Fri Dec 29 17:50:30 2017 +0000 @@ -1,5 +1,7 @@ #include "LCD.h" #include "BMP280.h" +#include "SDBlockDevice.h" +#include "FATFileSystem.h" #define ENTER_KEY 1 #define MAX_SAMPLES 120 @@ -11,6 +13,7 @@ extern LCD lcd; extern BMP280 sensor; +extern SDBlockDevice sd (PB_5, D12, D13, D10); /* External LEDs as Open Drain */ extern DigitalOut Red_ext (PE_15); @@ -25,7 +28,7 @@ /* Configure Digital In Switches */ extern DigitalIn SW_L (PE_12); extern DigitalIn SW_R (PE_14); -extern DigitalIn SW_B (USER_BUTTON); +//extern DigitalIn SW_B (USER_BUTTON); //defined as interrupt now for SD /* Configure Analogue Pins */ /* Analogue IN */ extern AnalogIn LDR_In (PA_0);