     }
 
     int setup() {
-      voltage_car.setup(A1);
-      voltage_220.setup(A2);
-      voltage_vbat.setup(A3);
-
-      relay_inverter_net.setup(1);
-      relay_car_220_loader.setup(2);
-      relay_vbat.setup(3);
-      relay_car.setup(4);
+      voltage_car.setup();
+      voltage_220.setup();
+      voltage_vbat.setup();
+
+      relay_inverter_net.setup();
+      relay_car_220_loader.setup();
+      relay_vbat.setup();
+      relay_car.setup();
 
       tempsensor.begin();
       //Serial.println("jo-3");

    template <class T, void (T::*TMethod)(void)>
    static void method_stub(void* object_ptr) {
        T* p = static_cast<T*>(object_ptr);
        return (p->*TMethod)(); // #2
    }
};


    const int8_t DONE=0;
    Timer t;

    AnalogRead<A1> voltage_car;
    AnalogRead<A2> voltage_220;
    AnalogRead<A3> voltage_vbat;

    DigitalWrite<1> relay_car_220_loader;
    DigitalWrite<2> relay_inverter_net;
    DigitalWrite<3> relay_vbat;
    DigitalWrite<4> relay_car;

    int16_t times;

