Hello,
my arduino code is not returning anything when I try to receive something. My remote is working but I don’t know how to test my reciever if it’s not returning anything. Here’s the code:
#include “MeOrion.h”
#include <SoftwareSerial.h>
//#define dumbytest 0x
MeInfraredReceiver infraredReceiverDecode(PORT_6);
//Motor
MeDCMotor motor1 (M1); //left motor
MeDCMotor motor2 (M2); //right motor
void setup()
{
infraredReceiverDecode.begin();
Serial.begin(9600);
}
void loop()
{
uint8_t ReceiverCode;
if(infraredReceiverDecode.available())
{
ReceiverCode = infraredReceiverDecode.read();
Serial.println(ReceiverCode);
// if (ReceiverCode == dumbytest) {
// motor1.run(-100);
// motor2.run(100);
// }
}
delay(500);
}
Thank you