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>
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
Is there a reason I can't use the keypad library with the z-uno? Should I only be using the ZMEKeypad.h library?