Skip to content
View jesus3476's full-sized avatar

Block or report jesus3476

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
jesus3476/README.md

#include <Controllino.h>

void setup() { // Configura las entradas
pinMode(CONTROLLINO_D, INPUT); // Entrada A
pinMode(CONTROLLINO_D1, INPUT); // Entrada B
pinMode(CONTROLLINO_D2, INPUT); // Entrada C

// Configura la salida para el LED  
pinMode(CONTROLLINO_D3, OUTPUT); // LED  

}

void loop() { // Lee las entradas
bool A = digitalRead(CONTROLLINO_D); // Lee entrada A
bool B = digitalRead(CONTROLLINO_D1); // Lee entrada B
bool C = digitalRead(CONTROLLINO_D2); // Lee entrada C

// Calcula las salidas de las puertas AND  
bool AND1 = A && B; // Salida de la primera puerta AND  
bool AND2 = AND1 && C; // Salida de la segunda puerta AND

// Calcula la salida de la puerta OR  
bool OR = AND2 || C; // Salida de la puerta OR

// Controla el LED basado en la salida de la puerta OR  
if (OR) {
    digitalWrite(CONTROLLINO_D3, HIGH); // Enciende el LED  
} else {
    digitalWrite(CONTROLLINO_D3, LOW); // Apaga el LED  
}

delay(100); // Pequeña pausa para evitar lecturas rápidas  

}

Popular repositories Loading

  1. Fire-Detection-Siglip2 Fire-Detection-Siglip2 Public

    Fire-Detection-Siglip2 is an image classification vision-language encoder model fine-tuned from google/siglip2-base-patch16-224 for a single-label classification task. It is designed to detect fire…

    Python 2

  2. jesus3476 jesus3476 Public

    Config files for my GitHub profile.