���}��bc���̆��}�����ܱM��؏ͣ��x�x ����69145���P(gu��n)ע�^���� |
---|
grace |
1�� |
![]() |
bc���̆��}�����ܱM��؏ͣ��x�x ![]()
�����ゃ�ṩ��bc�h(hu��n)�����_�l(f��)���I�P��ʹ�ó�����ɉK�r���l(f��)�F(xi��n)�����뵽project�У��\���@�ӵ�һ�����Μyԇ����r�������F(xi��n)�@�ӵ��e�`��
���� ��#include "Key_func.h" void ��main() { int i; Key newkey; i = newkey.ReadKey(); } Key �鶨�x���I�P�е������Key_func��cpp�ɳɹ�compile,�����B���@���yԇ����r�����F(xi��n)�@�ӵ��e�`�� Linker Error: ��Linker Error: _LetterTab defined in module KEYTEST.CPP is duplicated in��module KEY_FUNC.CPP ��Linker Error: _Tab defined in module KEYTEST.CPP is duplicated in module��KEY_FUNC.CPP ��Linker Error: key::writekey() defined in module KEY_FUNC.CPP is duplicated��in module KEY_FUNC.CPP �������� Ҳ������KEY_FUNC.CPP�ж��x�����еĽY(ji��)��(g��u)�w��ͺ���(sh��)�����@�ӈ��e��Ո���@��ʲôԭ�����ܱM��ش��x�x |
�������� | ���� | �؏� ![]() |
zhl |
2�� |
![]() |
![]()
KEY_FUNC.H�ļ������Ӷ��x�ģ��ܰ���ij���l(f��)�^��
|
�������� | ���� | �؏� ![]() |
grace |
3�� |
![]() |
![]()
����l(f��)����
�ҵ�KEY_FUNC.H���@ô����: /* Name: Key_Func.cpp Author: Tan Pei Corp: IELAB, USTC Date: 2004.7.27 Note: Key Driver */ #ifndef __KEY_FUNC_H #define __KEY_FUNC_H #include <stdio.h> #include <conio.h> #include <dos.h> #define PIOMODE0 0xFF70 #define PIODIR0 0xFF72 #define PIODATA0 0xFF74 #define PIOMODE1 0xFF76 #define PIODIR1 0xFF78 #define PIODATA1 0xFF7A unsigned int NB_Delay( unsigned int milliseconds ); void MC_Delay( unsigned int microseconds ) unsigned int GPIODirCfg( unsigned int Dir ); struct GPIOPos { unsigned int RegIdx; unsigned int PosIdx; }; struct GPIOPos Tab[10] = { { 0, 2 }, { 0, 3 }, { 0, 4 }, { 0, 5 }, { 0, 10 }, { 0, 13 }, { 0, 14 }, { 1, 0 }, { 1, 1 }, { 1, 9 } }; struct LetterCode { unsigned int Code; unsigned int ASCCode; char Letter[2]; }; struct LetterCode LetterTab[43] = { { 0x0045, 48, <|>0<|> }, { 0x0016,49, <|>1<|> }, { 0x001e,50, <|>2<|> }, { 0x0026,51, <|>3<|> }, { 0x0025,52, <|>4<|> }, { 0x002e, 53, <|>5<|> }, { 0x0036,54, <|>6<|> }, { 0x003d,55, <|>7<|> }, { 0x003e,56, <|>8<|> }, { 0x0046,57, <|>9<|> } }; class Key { public: int Key_Input; int Init(); int ReadKey(); int WriteKey(); };//Key #endif // __KEY_FUNC_H |
�������� | ���� | �؏� ![]() |
grace |
4�� |
![]() |
![]()
�ְl(f��)��һ�������ij���o���ˣ�Ո���ҿ��ºÆ
�x�x |
�������� | ���� | �؏� ![]() |
grace |
5�� |
![]() |
![]()
�����ˆ��ʲô�����@�ӵĆ��}�أ�
|
�������� | ���� | �؏� ![]() |
zhl |
6�� |
![]() |
![]()
�����ѻ����]������ðl(f��)prj+cpp+h��
|
�������� | ���� | �؏� ![]() |
grace |
7�� |
![]() |
![]()
�@�����}�ҽ����ѽ�(j��ng)�ҵ�ԭ����,�x�x.
|
�������� | ���� | �؏� ![]() |