Local library
Dependencies: WakeUp PinDetect
Dependents: Inductive_Sensor Inductive_Sensor_Jasper Inductive_Sensor_3
Diff: Bob.h
- Revision:
- 0:17943815800f
- Child:
- 1:2234e0b31d94
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bob.h Fri Dec 18 15:49:34 2015 +0000 @@ -0,0 +1,35 @@ +#ifndef _Bob_H_ +#define _Bob_H_ + +/** +* @file Bob.h +* @brief collection of some functions to communicate +* with the processor board. LEDs, SD, etc. +* +* @author Bob Giesberts +* +* @date 2015-12-18 +*/ + +#include "mbed.h" + +class Bob { + public: + Bob(PinName redled, PinName greenled, PinName sd_enable, PinName sd_present); + + bool checkSD(void); + void flash(int n); + void flash_red(int n); + void flash_green(int n); + void red(void); + void green(void); + + private: + DigitalOut _red; + DigitalOut _green; + DigitalOut _sdE; + DigitalIn *_sdP; + +}; + +#endif \ No newline at end of file