School project.

Dependencies:   Timezone NTPClient BSP_DISCO_F746NG Grove_temperature

main.cpp

Committer:
tuxx0046
Date:
2021-01-13
Revision:
3:02e7aac23ff9
Parent:
2:90d31841523a
Child:
4:1a12157689a7

File content as of revision 3:02e7aac23ff9:

/**
@file main.cpp
@brief Light Control System to automatically dimmer or increase light levels depending on registered light intensity.

@author Tu Tri Huynh

@date 1/13/2021
*/

#include "mbed.h"
/// These are global variables and declared before most other things
char building[31];
char room[31];

/// Used to test the controller and make sure that it functions
DigitalOut myled(LED1);

#include "setup_functions.h"

 


int main(){
    /*
    printf("Mbed OS version: %d,%d,%d\n\n",MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
    */
    
    setup_run_setup();
    while(1)
    {
        /** 01/13/2021 Used to test the controller and make sure that it functions.*/
        /**
        printf("This is a test.\n");
        myled = 1;
        wait_us(1000000);
        myled = 0;        
        wait_us(1000000);
        */
    }
}