Door, Window and Push-button Sensor



  • Bonjour

    j'utilise le code donné dans exemple mais je souhaiterai avoir QUATRES info porte ouverte
    mais quand je modifie le code plus rien ne marche

    #define CHILD_ID 3
    #define BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch

    MySensor gw;
    Bounce debouncer = Bounce();
    int oldValue=-1;

    merci de votre aide !

    pour les relais la programmation est facile :

    #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
    #define NUMBER_OF_RELAYS 1 // Total number of attached relays
    #define RELAY_ON 1 // GPIO value to write to turn on attached relay
    #define RELAY_OFF 0 // GPIO value to write to turn off attached relay


  • Admin

    Hi @nonobike,

    This is a english speaking forum. Please try to translate your question.


Log in to reply
 

538
Online

6.9k
Users

7.8k
Topics

82.9k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.