Question about using keypad libraries

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
Seth Opportunity
Posts: 5
Joined: 17 Oct 2018 02:59

Question about using keypad libraries

Post by Seth Opportunity » 26 Oct 2018 15:14

I am currently trying to interface a simple matrix keypad with my z-uno. I see that z-uno comes with a ZMEKeypad.h library and example and I am able to write a small program with it that compiles just fine (although it doesn't seem to work for me - I haven't looked into why yet).
I was hoping to use the keypad library that is provided in the Arduino IDE library manager (by Mark Stanley and Alexander Brevig). This is just because I am more familiar with it. When I start my code with

Code: Select all

#include <Keypad.h>
and try to compile my code though I get;

Code: Select all

************* Building Arduino Sketch *************
	door_lock.ino
	***************************************************

	 --- USING a list of libraries from:
		/Users/seth/Library/Arduino15/packages/Z-Uno/hardware/zw8051/2.1.4/libraries
		/Users/seth/Documents/Arduino/libraries
	*** Collecting prototypes...
Preprocessing file: Custom.c with SDCPP... 

Preprocessing file: Print.cpp with SDCPP... 
Compiling Print_sdcpp_.cpp ...
Preprocessing file: Stream.cpp with SDCPP... 
Compiling Stream_sdcpp_.cpp ...
Preprocessing file: HardwareSerial.cpp with SDCPP... 
Compiling HardwareSerial_sdcpp_.cpp ...
Preprocessing file: HLCore.cpp with SDCPP... 
Compiling HLCore_sdcpp_.cpp ...
Preprocessing file: door_lock.cpp with SDCPP... 
compilation terminated.

Preprocessor failed!uCxx returned error code:1

exit status 1
processing.app.debug.RunnerException
	at cc.arduino.Compiler.lambda$callArduinoBuilder$3(Compiler.java:309)
	at processing.app.debug.MessageSiphon.run(MessageSiphon.java:96)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at cc.arduino.Compiler.message(Compiler.java:525)
	at cc.arduino.i18n.I18NAwareMessageConsumer.message(I18NAwareMessageConsumer.java:80)
	at cc.arduino.MessageConsumerOutputStream.flush(MessageConsumerOutputStream.java:71)
	at cc.arduino.MessageConsumerOutputStream.write(MessageConsumerOutputStream.java:54)
	at java.io.OutputStream.write(OutputStream.java:75)
	at cc.arduino.Compiler.lambda$callArduinoBuilder$3(Compiler.java:307)
	... 2 more
If I compile my code for a different board (Uno R3) with the same library included it works just fine.

Is there a reason I can't use the keypad library with the z-uno? Should I only be using the ZMEKeypad.h library?

User avatar
PoltoS
Posts: 4334
Joined: 26 Jan 2011 19:36

Re: Question about using keypad libraries

Post by PoltoS » 28 Oct 2018 00:10

We can check it but Arduino library do not account for Z-Uno specific features. We have also noticed recently that our ZMEKeypad is not well optimized and causes problems. This is why we have already improved it abd we will release this with 2.1.5 soon. If you can wait one-two weeks, we will update the lib

Seth Opportunity
Posts: 5
Joined: 17 Oct 2018 02:59

Re: Question about using keypad libraries

Post by Seth Opportunity » 29 Oct 2018 02:59

Thanks.

I'll keep an eye out for 2.1.5.

Post Reply