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 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client
messageStruct.hpp
00001 #include "mbed.h" 00002 #include <stdio.h> 00003 #include <string> 00004 00005 typedef struct 00006 { 00007 double temp; 00008 double pressure; 00009 double ldr; 00010 } sample_message; 00011 00012 extern sample_message msg; 00013 00014 00015 typedef struct //structure used to store time and date info that is sent between LCD class and serial communcations 00016 { 00017 string day; //current day, mon - sun 00018 string month; //current month, jan - dec 00019 string date; //current date, 1-31 00020 string time; //current time SS:MM:HH 00021 string year; //current year 1970 - 2035? 00022 00023 string current_time; //all of the above in one string, day month date time year 00024 00025 } time_and_date; 00026 00027 extern time_and_date Timemsg;
Generated on Sat Jul 16 2022 02:51:17 by
