Program that combines a linefollower program with visible ligt communication.

Dependencies:   m3pi_custom mbed

analoog.cpp

Committer:
bertgereels
Date:
2018-05-16
Revision:
2:21fb894dc9d6
Parent:
1:243ec35fafcd

File content as of revision 2:21fb894dc9d6:

#include "mbed.h"
#include "analoog.h"
#include <string>

AnalogIn aIn(p20);

namespace ProjectTwo{
    

    AnalogReader::AnalogReader(){
    }
    
    float AnalogReader::getVoltage(void){
        float measuredVal = aIn.read();
        return measuredVal;
    }
    

    
}