Rev 694 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 694 | Rev 701 | ||
---|---|---|---|
Line 137... | Line 137... | ||
137 | break; |
137 | break; |
138 | case 1: // Send Data to Salve |
138 | case 1: // Send Data to Salve |
139 | switch(motor++) |
139 | switch(motor++) |
140 | { |
140 | { |
141 | case 0: |
141 | case 0: |
142 | i2c_write_byte(Motor_Vorne); |
142 | i2c_write_byte(Motor_Front); |
143 | break; |
143 | break; |
144 | case 1: |
144 | case 1: |
145 | i2c_write_byte(Motor_Hinten); |
145 | i2c_write_byte(Motor_Rear); |
146 | break; |
146 | break; |
147 | case 2: |
147 | case 2: |
148 | i2c_write_byte(Motor_Rechts); |
148 | i2c_write_byte(Motor_Right); |
149 | break; |
149 | break; |
150 | case 3: |
150 | case 3: |
151 | i2c_write_byte(Motor_Links); |
151 | i2c_write_byte(Motor_Left); |
152 | break; |
152 | break; |
153 | } |
153 | } |
154 | break; |
154 | break; |
155 | case 2: // repeat case 0+1 for all Slaves |
155 | case 2: // repeat case 0+1 for all Slaves |
156 | if (motor<4) twi_state = 0; |
156 | if (motor<4) twi_state = 0; |