/Modules/H_Bridge/HBSTEP01B/SW/I2CSPI_HBSTEP_test.py
99,11 → 99,11
spi.SPI_write_byte(self.CS, 0x00)
spi.SPI_write_byte(self.CS, 0x10)
spi.SPI_write_byte(self.CS, self.L6470_KVAL_RUN) # KVAL_RUN
spi.SPI_write_byte(self.CS, 0x58)
spi.SPI_write_byte(self.CS, 0x28)
spi.SPI_write_byte(self.CS, self.L6470_KVAL_ACC) # KVAL_ACC
spi.SPI_write_byte(self.CS, 0x58)
spi.SPI_write_byte(self.CS, 0x28)
spi.SPI_write_byte(self.CS, self.L6470_KVAL_DEC) # KVAL_DEC
spi.SPI_write_byte(self.CS, 0x58)
spi.SPI_write_byte(self.CS, 0x28)
# spi.SPI_write_byte(self.CS, 0x18) # CONFIG
# spi.SPI_write_byte(self.CS, 0b00111000)
# spi.SPI_write_byte(self.CS, 0b00000000)
262,7 → 262,7
 
X.Run(1, SPEED/2)
 
time.sleep(5)
time.sleep(3)
 
X.Float(hard = False) # release power