Keypad Library - mikroElektronika PIC Microcontrollers PIC12 User Manual

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...

Keypad Library

mikroC provides library for working with 4x4 keypad; routines can also be used
with 4x1, 4x2, or 4x3 keypad. Check the connection scheme at the end of the
topic.
Library Routines
Keypad_Init
Keypad_Read
Keypad_Released
Keypad_Init
Prototype
void Keypad_Init(char *port);
Description
Initializes
routines of the Keypad library.
Example
Keypad_Init(&PORTB);
Keypad_Read
Prototype
unsigned Keypad_Read(void);
Returns
1..16, depending on the key pressed, or 0 if no key is pressed.
Description
Checks if any key is pressed. Function returns 1 to 16, depending on the key pressed, or
0 if no key is pressed.
Requires
Port needs to be appropriately initialized; see
Example
kp = Keypad_Read();
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
to work with keypad. The function needs to be called before using other
port
.
Keypad_Init
page
193

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents