Line 78... |
Line 78... |
78 |
spi.SPI_write_byte(self.CS, 0x15) # Full Step speed |
78 |
spi.SPI_write_byte(self.CS, 0x15) # Full Step speed |
79 |
spi.SPI_write_byte(self.CS, 0xFF) |
79 |
spi.SPI_write_byte(self.CS, 0xFF) |
80 |
spi.SPI_write_byte(self.CS, 0xFF) |
80 |
spi.SPI_write_byte(self.CS, 0xFF) |
81 |
spi.SPI_write_byte(self.CS, 0x05) # ACC |
81 |
spi.SPI_write_byte(self.CS, 0x05) # ACC |
82 |
spi.SPI_write_byte(self.CS, 0x00) |
82 |
spi.SPI_write_byte(self.CS, 0x00) |
83 |
spi.SPI_write_byte(self.CS, 0x10) |
83 |
spi.SPI_write_byte(self.CS, 0x05) |
84 |
spi.SPI_write_byte(self.CS, 0x06) # DEC |
84 |
spi.SPI_write_byte(self.CS, 0x06) # DEC |
85 |
spi.SPI_write_byte(self.CS, 0x00) |
85 |
spi.SPI_write_byte(self.CS, 0x00) |
86 |
spi.SPI_write_byte(self.CS, 0x10) |
86 |
spi.SPI_write_byte(self.CS, 0x05) |
87 |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_RUN) # KVAL_RUN |
87 |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_RUN) # KVAL_RUN |
88 |
spi.SPI_write_byte(self.CS, 0x18) |
88 |
spi.SPI_write_byte(self.CS, 0x18) |
89 |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_ACC) # KVAL_ACC |
89 |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_ACC) # KVAL_ACC |
90 |
spi.SPI_write_byte(self.CS, 0x18) |
90 |
spi.SPI_write_byte(self.CS, 0x18) |
91 |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_DEC) # KVAL_DEC |
91 |
spi.SPI_write_byte(self.CS, self.L6470_KVAL_DEC) # KVAL_DEC |