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.
Fork of CW_copy by
main.cpp
- Committer:
- joseph_adamu
- Date:
- 2018-01-10
- Revision:
- 1:dc648c5624b9
- Parent:
- 0:4e623dbef4b8
File content as of revision 1:dc648c5624b9:
#include "mbed.h"
#include "TextLCD.h"
#include "operation.h"
#include "BMP280.h"
//#include "Networkbits.hpp"
Ticker display; // timer interrupt
Ticker second_pass; // timer interrupt
InterruptIn button(USER_BUTTON); // setting the b;ue button on the board
Thread t1,t2; // class allows defining, creating, and controlling thread functions in the system.
int main()
{
lcd.cls(); // clear lcd
displaying_date_and_time(); // displayin the time and date
while (cursor != 14) // while loop when cursor is not 14 it performs the function
{
button_select_date();
}
bmp280.initialize(); // intialisation of the BMP280 sesnor
pc.printf("putty ready\n\r");
display.attach(&dis_store_sensor_data, 2.0);
button.rise(&disp_check);
second_pass.attach(&tick, 1.0);
t1.start(disp_putty); // start thread of the function disp_putty
t2.start( disp_check); // start thread of the function disp_putty
while(1)
{
}
}
