def init():
    gpio.setwarnings(False)
    gpio.setmode(gpio.BCM)
    gpio.setup(22, gpio.OUT)
    gpio.setup(27, gpio.OUT)
    gpio.setup(17, gpio.OUT)
    gpio.setup(18, gpio.OUT)
    gpio.setup(in4, gpio.OUT)
    gpio.setup(in3, gpio.OUT)
    gpio.setup(in2, gpio.OUT)
    gpio.setup(in1, gpio.OUT)
    gpio.setup(21, gpio.OUT)
    gpio.setup(solled, gpio.OUT)
    gpio.setup(sagled, gpio.OUT)
    gpio.setup(23, gpio.IN)
    gpio.setup(24, gpio.IN)
    gpio.output(22, 0)
    gpio.output(18, 0)
    gpio.output(17, 0)
    gpio.output(27, 0)
    gpio.output(in4, 0)
    gpio.output(in3, 0)
    gpio.output(in2, 0)
    gpio.output(in1, 0)
    gpio.output(21, 0)
    gpio.output(solled, 0)
    gpio.output(sagled, 0)
def init():
    gpio.setwarnings(False)
    gpio.setmode(gpio.BCM)
    gpio.setup(22, gpio.OUT)
    gpio.setup(27, gpio.OUT)
    gpio.setup(17, gpio.OUT)
    gpio.setup(18, gpio.OUT)
    gpio.setup(in4, gpio.OUT)
    gpio.setup(in3, gpio.OUT)
    gpio.setup(in2, gpio.OUT)
    gpio.setup(in1, gpio.OUT)
    gpio.setup(21, gpio.OUT)
    gpio.setup(solled, gpio.OUT)
    gpio.setup(sagled, gpio.OUT)
    gpio.setup(23, gpio.IN)
    gpio.setup(24, gpio.IN)
    gpio.output(22, 0)
    gpio.output(18, 0)
    gpio.output(17, 0)
    gpio.output(27, 0)
    gpio.output(in4, 0)
    gpio.output(in3, 0)
    gpio.output(in2, 0)
    gpio.output(in1, 0)
    gpio.output(21, 0)
    gpio.output(solled, 0)
    gpio.output(sagled, 0)