Stepper-Motor-Controller
Stepper-Motor-Controller copied to clipboard
Senior project stepper motor controller based on L297, L298, ATTiny2313
I used the usi_i2c_slave.c and usi_i2c_slave.h files, in fact I needed to change the line 162 in usi_i2c_slave.c from "USI_Slave_internal_address_set = 0;" to "USI_Slave_internal_address_set = 1;".
There is an error with a slave sending multiple data bytes. Either need to clear the USIDR register within the state = USI_SLAVE_SEND_DATA_ACK_WAIT or change line 206 to be if(USIDR...
Thanks for the USI I2C library, great help. However, I found when in USI I2C Slave mode that if your Microcontroller is running at 8MHz or lower you will need...
Is it possible to use your slave library to send data from slave to master?
Not sure if you want contributions to this project, but I was interested in using your i2c code with an ATtiny85 so I added the platformio configuration and fixed warnings...