How to mention A/B in the port of simple DC motors in the dcMotorRun API?


#1

It seems I can only mention integer, but that does not work. I have the arm connected to port 4B and it works fine with makeblock app but from the API if I specify just “4” nothing happens.


#2

Figured it out myself.
Here are the port number order

1A - 1
2A - 2
3A - 3
4A - 4
5 - 5
6 - 6
7 - 7
8 - 8
1B - 9
2B - 10
3B - 11
4B - 12


#3