     // Configure pins.
     // D2 - gate output
     // A0 - gate input
-    // A1 - drain input with divisor 1:3
+    // A1 - drain input with divisor 1:4.3
     // A2 - +5V input with divisor 1:2
-    // A3 - +15V input with divisor 1:4
+    // A3 - +15V input with divisor 1:4.3
     //
     pinMode(gate_output_pin, OUTPUT);
 

#endif

/*
 * Print the current state of the device.
 */
void show_state()

    // Update input values.
    gate_input = analogRead(A0);
    drain_input = analogRead(A1);
    power5_input = analogRead(A2);
    power15_input = analogRead(A3);

    // Compute voltages.
    int gate_mv = gate_input * (5000.0 / 1024);
    int drain_mv = drain_input * ((5000.0 / 1024) * DRAIN_MULT);
    int power5_mv = power5_input * ((5000.0 / 1024) * POWER5_MULT);
    int power15_mv = power15_input * ((5000.0 / 1024) * POWER15_MULT);

    // Display all values.
    Serial.write("\r\nGate output: ");
    Serial.print(gate_output);

    Serial.write("\r\n Gate input: ");
    print_mv(gate_mv);
    Serial.write(" (");
    Serial.print(gate_input);
    Serial.write(")");

    Serial.write("\r\nDrain input: ");
    print_mv(drain_mv);
    Serial.write(" (");
    Serial.print(drain_input);
    Serial.write(")");

    Serial.write("\r\n  Power +5V: ");
    print_mv(power5_mv);
    Serial.write(" (");
    Serial.print(power5_input);
    Serial.write(")");

    Serial.write("\r\n Power +15V: ");
    print_mv(power15_mv);
    Serial.write(" (");
    Serial.print(power15_input);
    Serial.write(")");

    Serial.write("\r\n");
}

