Sakis Kasampalis
/
infrared
LPC1768 IR breakbeam sensor
Diff: infrared.h
- Revision:
- 0:ca4cef100279
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/infrared.h Sat Oct 29 19:41:40 2016 +0000 @@ -0,0 +1,17 @@ +#ifndef INFRARED_H +#define INFRARED_H + +#include "mbed.h" +#include <string> + +DigitalOut my_led(LED1); +DigitalIn infrared(p20); +Serial pc(USBTX, USBRX); + +enum led_state; + +void set_led(DigitalOut led, led_state state, const float delay); +const std::string current_date_time(); +void show_alert(const std::string& alert, const float delay); + +#endif \ No newline at end of file