53,10 → 53,9 |
#include <avr/interrupt.h> |
#include <util/twi.h> |
#include <util/delay.h> |
//#include "eeprom.h" |
#include "twimaster.h" |
//#include "analog.h" |
#include "configuration.h" |
#include "analog.h" |
#include "printf_P.h" |
|
volatile uint8_t twi_state = TWI_STATE_MOTOR_TX; |
66,9 → 65,8 |
volatile uint16_t I2CTimeout = 100; |
uint8_t missingMotor = 0; |
|
MotorData_t motor[MAX_MOTORS]; |
motorData_t motor[MAX_MOTORS]; |
|
volatile uint8_t DACValues[4]; |
uint8_t DACChannel = 0; |
|
#define SCL_CLOCK 200000L |
261,7 → 259,7 |
break; |
|
case 9: |
I2C_WriteByte(DACValues[DACChannel]); |
I2C_WriteByte(DACValues.offsets[DACChannel]); |
break; |
|
case 10: |