Newer
Older
smart-home-server / devices / button / README.md
@root root 7 days ago 549 bytes Devices. PIN MAPPING

Старая схема для блока кнопок на 4 кнопки

    const uint8_t BUTTON_PINS[BUTTON_MAX_CHANNELS] = {
      14, 12, 13, 15,
      SH_PIN_UNUSED, SH_PIN_UNUSED, SH_PIN_UNUSED, SH_PIN_UNUSED
    };

    static const uint8_t indicator_position[BUTTON_MAX_CHANNELS] = {
      0, 2, 3, 1,
      4, 5, 6, 7
    };

CLI compile

arduino-cli compile --fqbn esp8266:esp8266:d1_mini --output-dir /home/gbook/projects/smart-home-server/devices/builds/button_esp8266_x4 /home/gbook/projects/smart-home-server/devices/button