I am new to Mblock and used some coding with Arduino IDE before
Now when I create an mBot or Arduino program the code is shown includes several other things besides the simple LED assignment.
One of them is the MeDCMotor code, why is this added when I start to create a program ?
I am starting with only using a few led’s and don’t understand why this code is added.
It blocks me uploading the code. I receive the following messages:
project_Test211_0.ino:6:1: error: ‘MeDCMotor’ does not name a type
project_Test211_0.ino:7:1: error: ‘MeDCMotor’ does not name a type
project_Test211_0.ino: In function ‘void move(int, int)’:
project_Test211_0.ino:26:7: error: ‘motor_9’ was not declared in this scope
project_Test211_0.ino:26:24: error: ‘M1’ was not declared in this scope
project_Test211_0.ino:27:7: error: ‘motor_10’ was not declared in this scope
’MeDCMotor’ does not name a type
Can’t I just add the Motor code whenever I am doing something with a motor ?