School project.

Dependencies:   Timezone NTPClient BSP_DISCO_F746NG Grove_temperature

Committer:
tuxx0046
Date:
Wed Jan 13 12:11:54 2021 +0000
Revision:
3:02e7aac23ff9
Parent:
2:90d31841523a
Child:
4:1a12157689a7
Started working on basic LCD functionalities, using code from a previous project.; Changed some minor things in comments.; Renamed filename.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tuxx0046 1:1ee11539cc43 1 /**
tuxx0046 0:ed4063a0a4d5 2 @file main.cpp
tuxx0046 0:ed4063a0a4d5 3 @brief Light Control System to automatically dimmer or increase light levels depending on registered light intensity.
tuxx0046 0:ed4063a0a4d5 4
tuxx0046 0:ed4063a0a4d5 5 @author Tu Tri Huynh
tuxx0046 0:ed4063a0a4d5 6
tuxx0046 0:ed4063a0a4d5 7 @date 1/13/2021
tuxx0046 0:ed4063a0a4d5 8 */
tuxx0046 0:ed4063a0a4d5 9
tuxx0046 0:ed4063a0a4d5 10 #include "mbed.h"
tuxx0046 2:90d31841523a 11 /// These are global variables and declared before most other things
tuxx0046 0:ed4063a0a4d5 12 char building[31];
tuxx0046 0:ed4063a0a4d5 13 char room[31];
tuxx0046 0:ed4063a0a4d5 14
tuxx0046 2:90d31841523a 15 /// Used to test the controller and make sure that it functions
tuxx0046 2:90d31841523a 16 DigitalOut myled(LED1);
tuxx0046 0:ed4063a0a4d5 17
tuxx0046 3:02e7aac23ff9 18 #include "setup_functions.h"
tuxx0046 0:ed4063a0a4d5 19
tuxx0046 2:90d31841523a 20
tuxx0046 0:ed4063a0a4d5 21
tuxx0046 0:ed4063a0a4d5 22
tuxx0046 0:ed4063a0a4d5 23 int main(){
tuxx0046 0:ed4063a0a4d5 24 /*
tuxx0046 0:ed4063a0a4d5 25 printf("Mbed OS version: %d,%d,%d\n\n",MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
tuxx0046 0:ed4063a0a4d5 26 */
tuxx0046 0:ed4063a0a4d5 27
tuxx0046 2:90d31841523a 28 setup_run_setup();
tuxx0046 2:90d31841523a 29 while(1)
tuxx0046 2:90d31841523a 30 {
tuxx0046 2:90d31841523a 31 /** 01/13/2021 Used to test the controller and make sure that it functions.*/
tuxx0046 2:90d31841523a 32 /**
tuxx0046 2:90d31841523a 33 printf("This is a test.\n");
tuxx0046 2:90d31841523a 34 myled = 1;
tuxx0046 2:90d31841523a 35 wait_us(1000000);
tuxx0046 2:90d31841523a 36 myled = 0;
tuxx0046 2:90d31841523a 37 wait_us(1000000);
tuxx0046 2:90d31841523a 38 */
tuxx0046 2:90d31841523a 39 }
tuxx0046 0:ed4063a0a4d5 40 }