Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

main.cpp

Committer:
bertgereels
Date:
2018-02-26
Revision:
0:88d3b9015f7c
Child:
1:b5c534165dfe

File content as of revision 0:88d3b9015f7c:

#include "mbed.h"
#include "lcd.h"
#include "buzzer_music.h"
#include "rgb.h"
#include "potentiometer.h"
#include "temperature.h"
#include "master.h"
#include "command.h"
   
using namespace ProjectOne;
    
BusIn joy(p14); //enkel verticaal

int main() {
    BuzzerMusic buzzerMusic;
    Temperature temperatureReader;
    Potentiometer potentiometerReader;
    RGB rgbLed;
    LCD lcdApplicationBoard;
    
    if(joy == 1.0){ //ingedrukt?
        //slave werking
        Slave slave;
        slave.handleIncomingFrame();
    }else{
        //master werking
        Master master;
        master.handlePcData();
    }
    
    
    

}