smart-home-server / devices / button /
@root root authored 18 days ago
..
build/ esp8266.esp8266.generic Devices. PIN MAPPING 20 days ago
ButtonLogic.cpp Devices. PIN MAPPING 20 days ago
ButtonLogic.h Devices. PIN MAPPING 20 days ago
README.md Devices. PIN MAPPING 20 days ago
button.ino Upd device relay 18 days ago
README.md

Старая схема для блока кнопок на 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