MotorDriverBoard
MotorDriverBoard copied to clipboard
Error with MotorDriverBoard V5.3 with Arduino Leonardo R3 and Arduino UNO R4 not supported
Hi,
I am using the combination as stated in the title. However, I try to run the sample codes after importing the library into Arduino IDE 2.3.3. However, no matter which one I run, I encounter the same error message:
In file included from C:\Users\user\Documents\Arduino\libraries\Emakefun_MotorDriverBoard\src\Emakefun_MotorDriver.cpp:29:0:
C:\Users\user\Documents\Arduino\libraries\Emakefun_MotorDriverBoard\src\PinChangeInt.h:228:32: error: 'PCMSK1' was not declared in this scope
PCintPort portC=PCintPort(3, 1,PCMSK1); // port PC==3 (also in pins_arduino.c, Arduino version 022)
^~~~~~
C:\Users\user\Documents\Arduino\libraries\Emakefun_MotorDriverBoard\src\PinChangeInt.h:228:32: note: suggested alternative: 'PCMSK0'
PCintPort portC=PCintPort(3, 1,PCMSK1); // port PC==3 (also in pins_arduino.c, Arduino version 022)
^~~~~~
PCMSK0
C:\Users\user\Documents\Arduino\libraries\Emakefun_MotorDriverBoard\src\PinChangeInt.h:231:32: error: 'PCMSK2' was not declared in this scope
PCintPort portD=PCintPort(4, 2,PCMSK2); // port PD==4
^~~~~~
C:\Users\user\Documents\Arduino\libraries\Emakefun_MotorDriverBoard\src\PinChangeInt.h:231:32: note: suggested alternative: 'PCMSK0'
PCintPort portD=PCintPort(4, 2,PCMSK2); // port PD==4
^~~~~~
PCMSK0
exit status 1
Compilation error: exit status 1
May I know what is wrong with the library and how may I fix it? I tried to use mBlock v5.4.3 but another error occurs:
Error: Sending 3020: receiveData timeout after 1000ms
Another question is does your board support Arduino UNO R4 Minima? I cannot use the library properly as well with this driver board.
Thank you!