How can I handle both z-uno generations in the code?
e.g. The button on the z-uno has different ports.
ifnewzuno
#define BTN_PIN 23
else
#define BTN_PIN 18
end
Query old / new z-uno
Re: Query old / new z-uno
Will this work?????
#if ZUNO_PIN_V == 6
#define BTN_PIN 23 // z-uno2G
#else
#define BTN_PIN 18 // z-uno
#endif
#if ZUNO_PIN_V == 6
#define BTN_PIN 23 // z-uno2G
#else
#define BTN_PIN 18 // z-uno
#endif
Re: Query old / new z-uno
Hi,
You are wrong, on the first ZUno button is located on #23 pin too, but it uses #18 to wakeup. So you can use pin 23 to handle both versions.
Best regards,
Alex.
You are wrong, on the first ZUno button is located on #23 pin too, but it uses #18 to wakeup. So you can use pin 23 to handle both versions.
Best regards,
Alex.
Re: Query old / new z-uno
Thank you, I did not know that. In all (old) examples port 18 is used.