Replies: 5 comments 4 replies
-
"real2" - a co to za wersja? |
Beta Was this translation helpful? Give feedback.
-
No miało być |
Beta Was this translation helpful? Give feedback.
-
No nie wpadłem, że porównujesz z wersją https://github.com/lkankowski/arduino-multi-relay - to taka prehistoria, że już zapomniałem ;) Co do problemu, to musiałbyś coś więcej podać, żebym mógł pomóc:
|
Beta Was this translation helpful? Give feedback.
-
W platformio.ini nic nie zmieniam
|
Beta Was this translation helpful? Give feedback.
-
a zmieniasz środowisko kompilacji na |
Beta Was this translation helpful? Give feedback.
-
Zacznę jeszcze raz mianowicie chciałem wgrać tą nowszą wersje real2.
Cały czas mam problem z tym mcp23017 na starej wersji chodzi bezproblemowo a na nowszej nie działa, w tej starej wersji trzeba odznaczyć:
-D EXPANDER_MCP23017
Na nowszej niby nic się nie robi a nie działa moje ustawienia to:
#ifdef USE_EXPANDER
const uint8_t gExpanderAddresses[] = {0};
const RelayConfigDef gRelayConfig[] PROGMEM = {
{1, E(0,0), RELAY_TRIGGER_HIGH, -1, "ŚWIATLO PRZED GARAŻEM"}, //A0
};
// Buttons config
// Row params: button pin - pin used for button, can be expander pin (but NOT RECOMMENDED) via "E(x, y)" macro
// button type - [MONO_STABLE|BI_STABLE|DING_DONG|REED_SWITCH]
// click action relay ID - MUST be defined in gRelayConfig
// long-press action relay ID - ignored for BI_STABLE, DING_DONG, REED_SWITCH
// double-click action relay ID - ignored for DING_DONG, REED_SWITCH
// button description - debug only, max. 30 chars, can be empty ("")
const ButtonConfigDef gButtonConfig[] PROGMEM = {
{A0, MONO_STABLE, 1, -1, -1, "ŚWIATLO PRZED GARAŻEM"},
};
Podłączenie jest dobre bo nic nie zmieniam, co może być problemem. Wystarczy że wgram na starej i wszystko działa.
Beta Was this translation helpful? Give feedback.
All reactions