PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
KeyPad.h File Reference

Containing a function to check which key of the KeyPad is pressed. More...

#include "../Pins/Pins.h"
#include "Core/Keys.h"

Go to the source code of this file.

Functions

Keys_t KeyPad_GetKeys ()
 Check which key of the KeyPad is pressed.
 

Detailed Description

Containing a function to check which key of the KeyPad is pressed.

Date
03.09.2020 21:45:28
Author
Markus Scheich
See also
https://circuitdigest.com/microcontroller-projects/keypad-interfacing-with-avr-atmega32

Function Documentation

◆ KeyPad_GetKeys()

Keys_t KeyPad_GetKeys ( )
inline

Check which key of the KeyPad is pressed.

This function first powers the row pins and reads the value at the column pins. Then the column pins are powered and the row pins are read. From the combination of these values the pressed key is calculated. This function always returns only one key. Multiple keys not supported with this structure.

Returns
Pressed key.