Project

General

Profile

Revision fcddafaf

IDfcddafaf9913dd33984d9b75f39918d13ca21dd9
Parent d9b50611
Child 11c945d9

Added by Julian Binder over 3 years ago

added motor turn on when metal is detected

View differences:

paintboard/code/main.c
108 108
    internal_data[PAINT_INPUT_1] = !(!(_BV(METAL_DETECT) & PIND));
109 109
    if (internal_data[PAINT_INPUT_1]) {
110 110
      set_servo1(-128);
111
      set_motor1(0);
112
      set_motor2(0);
111 113
    } else {
112 114
      set_servo1(127);
115
      set_motor1(127);
116
      set_motor2(127);
113 117
    }
114 118
    servo_pulse();
115 119
    /* TODO geiger counter */

Also available in: Unified diff