Revision 351481ed paintboard/code/main.c

View differences:

paintboard/code/main.c
1 1
#include "twi.h"
2 2
#include "motor.h"
3
#include "servo.h"
4
#include "sol.h"
3 5
#include <avr/io.h>
4 6
#include <avr/interrupt.h>
5 7

  
......
46 48
      internal_data[internal_index] = value;
47 49
      switch (internal_index) {
48 50
        case PAINT_MOTOR_A:
49
          /* ...TODO... */
51
          set_motor1(value);
50 52
          break;
51 53
        case PAINT_MOTOR_B:
52
          /* ...TODO... */
54
          set_motor2(value);
53 55
          break;
54 56
        case PAINT_SERVO_A:
55
          /* ...TODO... */
57
          set_servo1(value);
56 58
          break;
57 59
        case PAINT_SERVO_B:
58
          /* ...TODO... */
60
          set_servo2(value);
59 61
          break;
60 62
        case PAINT_12V_1:
61
          /* ...TODO... */
63
          set_sol1(value);
62 64
          break;
63 65
        case PAINT_12V_2:
64
          /* ...TODO... */
66
          set_sol2(value);
65 67
          break;
66 68
        case PAINT_12V_3:
67
          /* ...TODO... */
69
          set_sol3(value);
68 70
          break;
69 71
        case PAINT_12V_4:
70
          /* ...TODO... */
72
          set_sol4(value);
71 73
          break;
72 74
      }
73 75
    }

Also available in: Unified diff