Line 28... |
Line 28... |
28 |
# spi.SPI_write_byte(self.CS, 0x13) # Over Current Treshold setup |
28 |
# spi.SPI_write_byte(self.CS, 0x13) # Over Current Treshold setup |
29 |
# spi.SPI_write_byte(self.CS, 0xFF) |
29 |
# spi.SPI_write_byte(self.CS, 0xFF) |
30 |
#spi.SPI_write_byte(self.CS, 0x15) # Full Step speed |
30 |
#spi.SPI_write_byte(self.CS, 0x15) # Full Step speed |
31 |
#spi.SPI_write_byte(self.CS, 0x00) |
31 |
#spi.SPI_write_byte(self.CS, 0x00) |
32 |
#spi.SPI_write_byte(self.CS, 0x30) |
32 |
#spi.SPI_write_byte(self.CS, 0x30) |
- |
|
33 |
spi.SPI_write_byte(self.CS, 0x09) # KVAL_HOLD |
- |
|
34 |
spi.SPI_write_byte(self.CS, 0xFF) |
- |
|
35 |
|
33 |
#spi.SPI_write_byte(self.CS, 0x0A) # KVAL_RUN |
36 |
spi.SPI_write_byte(self.CS, 0x0A) # KVAL_RUN |
34 |
#spi.SPI_write_byte(self.CS, 0x50) |
37 |
spi.SPI_write_byte(self.CS, 0xFF) |
- |
|
38 |
|
35 |
spi.SPI_write_byte(self.CS, 0x18) # KVAL_RUN |
39 |
spi.SPI_write_byte(self.CS, 0x0B) # KVAL_ACC |
- |
|
40 |
spi.SPI_write_byte(self.CS, 0xFF) |
- |
|
41 |
|
- |
|
42 |
spi.SPI_write_byte(self.CS, 0x18) # Config register |
36 |
spi.SPI_write_byte(self.CS, 0b11000000) |
43 |
spi.SPI_write_byte(self.CS, 0b11000000) |
37 |
spi.SPI_write_byte(self.CS, 0x88) |
44 |
spi.SPI_write_byte(self.CS, 0x88) |
38 |
|
45 |
|
39 |
def MaxSpeed(self, speed): |
46 |
def MaxSpeed(self, speed): |
40 |
' Setup of maximum speed ' |
47 |
' Setup of maximum speed ' |