代码搜索结果
找到约 2,241 项符合
Keypad 的代码
keypad.c
/*
4x4 Keypad Demo
CodeVisionAVR C Compiler
(C) 2000-2002 HP InfoTech S.R.L.
www.hpinfotech.ro
Chip: AT90S8515
Connect the keypad matrix as follows:
[STK500 PORTD HEADER
keypad.prj
[Project]
Toolset=AVR
Files=1
OpenedFiles=1
TerminalState=-1
Top0=107
Left0=52
Height0=381
Width0=511
Active0=0
State0=1
OF1=keypad.c
Top1=2
Left1=2
Height1=410
Width1=604
Row1=1
Coll
keypad.c
#include
code char key_code[] = { 0X7E,0X7D,0XBD,0XDD,0X7B,0XBB,0XDB,0X77,0XB7,0XD7,0XBE,0XDE,0XE7,0XEB,0XED,0XEE};
code ksp[4] = {0x7F,0xBF,0xDF,0xEF};
void delay (void)
{
unsigned cha
keypad.h
// Keypad.h
// Keypad class definition. Represents the keypad of the ATM.
#ifndef KEYPAD_H
#define KEYPAD_H
class Keypad
{
public:
int getInput() const; // return an integer value entered
keypad.cpp
// Keypad.cpp
// Member-function definition for class Keypad (the ATM's keypad).
#include
using std::cin;
#include "Keypad.h" // Keypad class definition
// return an integer value