I'm trying to replicate a small arduino sketch using PyMata. I was wondering if you could offer any insight into the following two programs for a motor controller. The code is suppose to set a speed using analog pin 10 and then set a direction for the motor by setting pins 12 and 13 on or off. The first one (arduino) works correctly. However, the second one in python is only partially working (the forwards and reverse LEDs on the motor controller light up correctly but the motors do not move). Because the lights are toggling, my theory is that there is that the issue resides in my analog write to pin 10.
I'm trying to replicate a small arduino sketch using PyMata. I was wondering if you could offer any insight into the following two programs for a motor controller. The code is suppose to set a speed using analog pin 10 and then set a direction for the motor by setting pins 12 and 13 on or off. The first one (arduino) works correctly. However, the second one in python is only partially working (the forwards and reverse LEDs on the motor controller light up correctly but the motors do not move). Because the lights are toggling, my theory is that there is that the issue resides in my analog write to pin 10.