Skip to content
Snippets Groups Projects
Commit 23744de1 authored by Orhan-Timo Altan's avatar Orhan-Timo Altan
Browse files

.

parent 59dd2ba7
Branches
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
* 8 Button | 82 *
* 9 Button | 74 *
* ****************************************** */
#define IR_USE_AVR_TIMER3
#include <IRremote.h>
IRrecv ir_reciver(IR_PIN);
decode_results results;
......@@ -47,13 +47,16 @@ public:
{
ir_command = ir_reciver.decodedIRData.command;
ir_reciver.resume();
return ir_command;
}
else
{
ir_command = 0;
}
return ir_command;
};
private:
int ir_command;
};
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment