1,6 → 1,6 |
#include "motor.h" |
#use i2c(Slave,Fast,sda=PIN_B1,scl=PIN_B4,force_hw,address=0xA0) // Motor 1 |
//#use i2c(Slave,Fast,sda=PIN_B1,scl=PIN_B4,force_hw,address=0xA2) // Motor 2 |
//#use i2c(Slave,Fast,sda=PIN_B1,scl=PIN_B4,force_hw,address=0xA0) // Motor 1 |
#use i2c(Slave,Fast,sda=PIN_B1,scl=PIN_B4,force_hw,address=0xA2) // Motor 2 |
|
#define H1 PIN_A1 |
#define L1 PIN_A2 |
74,7 → 74,7 |
output_high(L1); |
output_low(L2); |
}; |
delay_us(127-abs(command)); |
delay_us(abs(command)); |
output_low(H1); |
output_low(H2); |
output_low(L1); |