![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Program that combines a linefollower program with visible ligt communication.
Dependencies: m3pi_custom mbed
Diff: analoog.h
- Revision:
- 1:243ec35fafcd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analoog.h Wed May 16 19:12:20 2018 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" +#include "m3pi.h" + +#pragma once + + +namespace ProjectTwo{ + + class AnalogReader{ + public: + /* + * Constructor for AnalogReader class. + * + @param Nothing. + @return Nothing. + */ + AnalogReader(void); + + /* + * Method that reads the voltage from the photodiode underneath the robot. + * + @param Nothing. + @return The voltage as a float. + */ + float getVoltage(void); + private: + + + }; +}; \ No newline at end of file