This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// === UNO_ALARMA (Placa 2) ===================================== | |
// Lee 4 zonas (puertas/ventanas) y PIR. DIP define modo: | |
// HOME (dentro): PIR no dispara. | |
// AWAY (fuera): PIR sí dispara. | |
// Sin IR y sin buzzer en esta placa. Reporta por RS-232 a DOM. | |
#include <SoftwareSerial.h> | |
// RS-232 hacia DOM (cruzado con sus D7/D8) | |
SoftwareSerial ssAlm(2, 3); // RX=2, TX=3 |