Rev 4742 Rev 4746
Line 83... Line 83...
83 spi.SPI_write_byte(self.CS, 0x10) 83 spi.SPI_write_byte(self.CS, 0x10)
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, 0x10)
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, 0x58) 88 spi.SPI_write_byte(self.CS, 0x28)
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, 0x58) 90 spi.SPI_write_byte(self.CS, 0x28)
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
92 spi.SPI_write_byte(self.CS, 0x58) 92 spi.SPI_write_byte(self.CS, 0x28)
93 spi.SPI_write_byte(self.CS, 0x18) # CONFIG 93 spi.SPI_write_byte(self.CS, 0x18) # CONFIG
94 spi.SPI_write_byte(self.CS, 0b00101110) # spolecny byte pro obe konfigurace 94 spi.SPI_write_byte(self.CS, 0b00101110) # spolecny byte pro obe konfigurace
95 spi.SPI_write_byte(self.CS, 0b10000000) # konfigurace pro interni oscilator 95 spi.SPI_write_byte(self.CS, 0b10000000) # konfigurace pro interni oscilator
96 # spi.SPI_write_byte(self.CS, 0b10000110) # konfigurace s externim oscilatorem 96 # spi.SPI_write_byte(self.CS, 0b10000110) # konfigurace s externim oscilatorem
97 self.MaxSpeed(self.maxspeed) 97 self.MaxSpeed(self.maxspeed)