Sakis Kasampalis
/
infrared
LPC1768 IR breakbeam sensor
Embed:
(wiki syntax)
Show/hide line numbers
infrared.h
00001 #ifndef INFRARED_H 00002 #define INFRARED_H 00003 00004 #include "mbed.h" 00005 #include <string> 00006 00007 DigitalOut my_led(LED1); 00008 DigitalIn infrared(p20); 00009 Serial pc(USBTX, USBRX); 00010 00011 enum led_state; 00012 00013 void set_led(DigitalOut led, led_state state, const float delay); 00014 const std::string current_date_time(); 00015 void show_alert(const std::string& alert, const float delay); 00016 00017 #endif
Generated on Sat Jul 16 2022 01:44:55 by 1.7.2