Line 65... |
Line 65... |
65 |
spi.SPI_write_byte(self.CS, 0x10) |
65 |
spi.SPI_write_byte(self.CS, 0x10) |
66 |
spi.SPI_write_byte(self.CS, 0x06) # DEC |
66 |
spi.SPI_write_byte(self.CS, 0x06) # DEC |
67 |
spi.SPI_write_byte(self.CS, 0x00) |
67 |
spi.SPI_write_byte(self.CS, 0x00) |
68 |
spi.SPI_write_byte(self.CS, 0x10) |
68 |
spi.SPI_write_byte(self.CS, 0x10) |
69 |
spi.SPI_write_byte(self.CS, 0x0A) # KVAL_RUN |
69 |
spi.SPI_write_byte(self.CS, 0x0A) # KVAL_RUN |
70 |
spi.SPI_write_byte(self.CS, 0x1F) |
70 |
spi.SPI_write_byte(self.CS, 0x18) |
71 |
spi.SPI_write_byte(self.CS, 0x0B) # KVAL_ACC |
71 |
spi.SPI_write_byte(self.CS, 0x0B) # KVAL_ACC |
72 |
spi.SPI_write_byte(self.CS, 0x1F) |
72 |
spi.SPI_write_byte(self.CS, 0x18) |
73 |
spi.SPI_write_byte(self.CS, 0x0C) # KVAL_DEC |
73 |
spi.SPI_write_byte(self.CS, 0x0C) # KVAL_DEC |
74 |
spi.SPI_write_byte(self.CS, 0x1F) |
74 |
spi.SPI_write_byte(self.CS, 0x18) |
75 |
# spi.SPI_write_byte(self.CS, 0x18) # CONFIG |
75 |
# spi.SPI_write_byte(self.CS, 0x18) # CONFIG |
76 |
# spi.SPI_write_byte(self.CS, 0b00111000) |
76 |
# spi.SPI_write_byte(self.CS, 0b00111000) |
77 |
# spi.SPI_write_byte(self.CS, 0b00000000) |
77 |
# spi.SPI_write_byte(self.CS, 0b00000000) |
78 |
|
78 |
|
79 |
def MaxSpeed(self, speed): |
79 |
def MaxSpeed(self, speed): |