Keypad: No such file or directory.... But I just downloaded it!

Hi all,

I'm running a very basic code and I noticed 'Keypad' wasn't included in my library (written in black) so I downloaded it through the manager and it finally appeared in orange. But when trying to upload, it gave me the same message: 'Keypad: No such file or directory'.

My question is: why do I still have an error when 'Keypad' is in orange (I checked, it is showing in the library list)?

Thank you,
Joe
*
*
*
In addition,
I tried to erase it and click on it through Sketch --> Include --> Keypad and something weird shows:

first row: #include <Key.h> ('Key' written in black)
second row: #include <Keypad.h> ('Keypad' written in orange)

I don't know why the 'Key' shows up but hell now the error is on 'Key'

At this point I'm trying to find 'Key' in the library but I'm suspecting that's another problem for another time

Thanks again,
Joe

Which processor are you trying to compile for?

(If you'd posted the error message, I wouldn't have had to ask)

Please do this:

  • When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link that will allow you to make the attachment.

thank you. here is the error message:

Arduino: 1.8.11 (Windows 10), Board: "Arduino Uno"

sketch_apr15a:1:10: error: Keypad.h: No such file or directory

compilation terminated.

exit status 1
Keypad.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Maybe just a silly comment but just downloading is not enough; you will need to install it.

Folder PATH listing for volume Windows
Volume serial number is 0C5F-A8C6
C:\USERS\STERRETJE\DOCUMENTS\ARDUINO\LIBRARIES
+---Joystick
|   +---examples
|   |   +---DrivingControllerTest
|   |   +---FlightControllerTest
|   |   +---GamepadExample
|   |   +---HatSwitchTest
|   |   +---JoystickButton
|   |   +---JoystickKeyboard
|   |   +---JoystickTest
|   |   \---MultipleJoystickTest
|   \---src
|       \---DynamicHID
[b][color=red]+---Keypad[/color][/b]
|   +---examples
|   |   +---CustomKeypad
|   |   +---DynamicKeypad
|   |   +---EventKeypad
|   |   +---HelloKeypad
|   |   +---HelloKeypad3
|   |   +---loopCounter
|   |   \---MultiKey
|   \---src
+---MFRC522
|   +---doc
|   |   \---fritzing
|   +---examples
|   |   +---AccessControl
|   |   +---ChangeUID
|   |   +---DumpInfo
|   |   +---firmware_check
|   |   +---FixBrickedUID
|   |   +---MifareClassicValueBlock
|   |   +---MinimalInterrupt
|   |   +---Ntag216_AUTH
|   |   +---ReadAndWrite
|   |   +---ReadNUID
|   |   +---ReadUidMultiReader
|   |   +---RFID-Cloner
|   |   +---rfid_default_keys
|   |   +---rfid_read_personal_data
|   |   \---rfid_write_personal_data
|   \---src
\---VirtualWire
    +---doc
    +---examples
    |   +---client
    |   +---receiver
    |   +---server
    |   \---transmitter
    \---VWutil

Just as an example where it should be

1 Like

Board: "Arduino Uno"And there's your answer

1 Like

Well I did install it from the manager, even updated it just to see if there'd be a difference.

So I went on the same path

+---Keypad
| +---examples
| | +---CustomKeypad
| | +---DynamicKeypad
| | +---EventKeypad
| | +---HelloKeypad
| | +---HelloKeypad3
| | +---loopCounter
| | ---MultiKey
| ---src

Anything I should do at this point?

1 Like

TheMemberFormerlyKnownAsAWOL:
Board: "Arduino Uno"And there's your answer

Did I miss something? OP is talking about Keypad, not Keyboard.

1 Like

This should be the content of the Keypad library

Folder PATH listing for volume Windows
Volume serial number is 0C5F-A8C6
C:\USERS\STERRETJE\DOCUMENTS\ARDUINO\LIBRARIES\KEYPAD
|   keywords.txt
|   library.properties
|   LICENSE
|   README.md
|   
+---examples
|   +---CustomKeypad
|   |       CustomKeypad.ino
|   |       
|   +---DynamicKeypad
|   |       DynamicKeypad.ino
|   |       
|   +---EventKeypad
|   |       EventKeypad.ino
|   |       
|   +---HelloKeypad
|   |       HelloKeypad.ino
|   |       
|   +---HelloKeypad3
|   |       HelloKeypad3.ino
|   |       
|   +---loopCounter
|   |       loopCounter.ino
|   |       
|   \---MultiKey
|           MultiKey.ino
|           
[b][color=red]\---src
        Key.cpp
        Key.h
        Keypad.cpp
        Keypad.h
[/color][/b]

After that, I'm not sure.

The colouring in yellow indicates that the IDE found it somewhere in a keywords.txt; it does not necessarily has to be in the one belonging to the Keypad library.

Sorry.
Brain-fart.

Idée fixe.

JoeMechEng:
| ---src

Is the src folder empty?