diff --git a/BITsIRReciver.h b/BITsIRReciver.h index d840c44ef911d5d024cb130ca66ce97d07f70b1f..b0cae0835c19ae6d18a0d756ee29270c6e9098ff 100644 --- a/BITsIRReciver.h +++ b/BITsIRReciver.h @@ -30,7 +30,6 @@ * ****************************************** */ #include <IRremote.h> -const int IR_PIN = 46; IRrecv ir_reciver(IR_PIN); decode_results results; @@ -54,6 +53,7 @@ public: private: int ir_command; + }; #endif \ No newline at end of file diff --git a/examples/IRReciver/IRReciver.ino b/examples/IRReciver/IRReciver.ino index 9a2a80efad2e8f8842199e497ef744736efe6f19..e43924c479af452d5929fd0e38951e4c1c9708b0 100644 --- a/examples/IRReciver/IRReciver.ino +++ b/examples/IRReciver/IRReciver.ino @@ -1,3 +1,4 @@ +#define IR_PIN 46 #include "BITsIRReciver.h" BitsIrReciver ir_sensor;