Can compiling


#1

i wrote this code but i’m having trouble compiling it

include < Arduino.h>
include < Wire.h>
include < Servo.h>
include < SoftwareSerial.h>

include "mBot.h"
include "MePort.h"
MeBoard myBoard(mBot);
include "MeIR.h"
include “MeDCMotor.h”

double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
MeIR ir;
MeDCMotor motor_9(9);
MeDCMotor motor_10(10);

void setup(){
ir.begin();

}

void loop(){

if(ir.keyPressed(64)){
    motor_9.run(255);
    motor_10.run(255);
}else{
    if(ir.keyPressed(25)){
        motor_9.run(-255);
        motor_10.run(-255);
    }else{
        if(ir.keyPressed(7)){
            motor_9.run(-255);
            motor_10.run(255);
        }else{
            if(ir.keyPressed(9)){
                motor_9.run(255);
                motor_10.run(-255);
            }else{
                motor_9.run(0);
                motor_10.run(0);
            }
        }
    }
}
ir.loop();

}


#2

What error do you get when compiling and what version of libraries and arduino?

If you have encompass.cpp and .h delete those two files as that was my issue


#3