87,14 → 87,14 |
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, 0xF8) |
spi.SPI_write_byte(self.CS, 0x58) |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_ACC) # KVAL_ACC |
spi.SPI_write_byte(self.CS, 0xF8) |
spi.SPI_write_byte(self.CS, 0x58) |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_DEC) # KVAL_DEC |
spi.SPI_write_byte(self.CS, 0xF8) |
spi.SPI_write_byte(self.CS, 0x58) |
spi.SPI_write_byte(self.CS, 0x18) # CONFIG |
spi.SPI_write_byte(self.CS, 0b00101110) |
spi.SPI_write_byte(self.CS, 0b10001000) |
spi.SPI_write_byte(self.CS, 0b10000110) |
self.MaxSpeed(self.maxspeed) |
|
def setKVAL(self, hold = 0.5, run = 0.5, acc = 0.5, dec = 0.5): |