Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BMP280
main.cpp.orig
- Committer:
- Swaggie
- Date:
- 2018-01-06
- Revision:
- 15:e61297f9bae9
File content as of revision 15:e61297f9bae9:
#include "mbed.h"
#include "WebUI.h"
#include "Serial.h"
#include "Sampling.h"
#include "LCD.h"
#include "SDBlockDevice.h"
#include "FATFileSystem.h"
//SD Card Object
SDBlockDevice sd(D11, D12, D13, D10); // mosi, miso, sclk, cs
//File pointer for the SD card
FILE* fp;
int main()
{
//Initialise devices
////WebUISetup();
//Hardware Self Test
//Initialise interrupts and times
ConfigThreadsAndIR();
firstSample = true; //Set only at start of program
//Run
while (true)
{
if (NewEnvSample && NewLDRSample)
{
//New samples have been captured and are in the register
IncrementIndex();
//LCD Update Function
NewEnvSample = false;
NewLDRSample = false;
}
}
}