Skip to content

J4spr/arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b72797c · May 30, 2023

History

3 Commits
May 29, 2023
May 30, 2023
May 29, 2023
May 29, 2023
May 29, 2023

Repository files navigation

Keypad Example

This is an example code that demonstrates the usage of a keypad with an Arduino board. The code allows you to read key presses from a 4x4 keypad and control LEDs based on the pressed keys.

Circuit Diagram

the circuit cables

Prerequisites

  • Arduino board
  • Keypad library

Installation

  1. Connect the keypad to your Arduino board based on the provided pin connections in the code.
  2. Install the Keypad library if you haven't already.
  3. Upload the code to your Arduino board.

Usage

  1. Open the Serial Monitor in the Arduino IDE.
  2. Press keys on the keypad.
  3. The pressed key will be displayed in the Serial Monitor.
  4. LEDs will be controlled based on the pressed keys.

Customization

  • Modify the keypadLayout array to change the key mappings on the keypad.
  • Adjust the pin connections in the rowPins and colPins arrays according to your circuit setup.
  • Customize the LED pin (ledPin) to match your circuit configuration.

License

This code is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages