Generation

generate functionMon, 03 Apr 2023

# motor 1 bajada GPIO 27 # motor 2 cinta GPIO 28 # motor 3 subida GPIO 29 # motor 4 cinta GPIO 30 # led 1 GPIO 31 # led 2 GPIO 32 # motor 5 puerta GPIO 33 # motor 6 puerta GPIO 34 # # SUBIR puerta y led 2 time 09:00 GPIO 32 GPIO 33 wait 60 seconds # apagar motores y led 2 OFF GPIO 32 OFF GPIO 33 # Bajar Motor y LED 1 time 18:00 ON GPIO 27 ON GPIO 28 ON GPIO 30 Wait 14 seconds # Apagado OFF GPIO 27 OFF GPIO 28 OFF GPIO 31 # maniobra inversa Time 18:01 ON GPIO 29 ON GPIO 30 ON GPIO 31 Wait 14 seconds OFF GPIO 27 OFF GPIO 28 OFF GPIO 31 OFF GPIO 29 OFF GPIO 30 time 20:58 # LED 2 ON GPIO 32 wait 30 seconds OFF GPIO 32 # accionar puerta y led time 21:00 # bajar puerta y led GPIO 32 GPIO 34

import pigpio pi = pigpio.pi() pi.set_mode(27, pigpio.OUTPUT) pi.write(27, 1)

Questions about programming?Chat with your personal AI assistant