Query old / new z-uno

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
joergm6
Posts: 24
Joined: 03 Nov 2016 21:16

Query old / new z-uno

Post by joergm6 »

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
joergm6
Posts: 24
Joined: 03 Nov 2016 21:16

Re: Query old / new z-uno

Post by joergm6 »

Will this work?????

#if ZUNO_PIN_V == 6
#define BTN_PIN 23 // z-uno2G
#else
#define BTN_PIN 18 // z-uno
#endif
p0lyg0n1
Posts: 242
Joined: 04 Aug 2016 07:14

Re: Query old / new z-uno

Post by p0lyg0n1 »

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.
joergm6
Posts: 24
Joined: 03 Nov 2016 21:16

Re: Query old / new z-uno

Post by joergm6 »

Thank you, I did not know that. In all (old) examples port 18 is used. :)
Post Reply