Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pinguino32X + keypad librairie
11-11-2011, 11:44 AM,
#9
RE: Pinguino32X + keypad librairie
ok merci, je teste et revient .

La persévérance paye toujours, mais a quel prix, les prises de têtes, aïe aïe Smile

EDIT:

On progresse, mais ...

erreur

error: missing definition for symbol "_Keypad_getKey", required by "E:\pinguino32X\library\source\main.o"
error: missing definition for symbol "_Keypad_init", required by "E:\pinguino32X\library\source\main.o"
error while linking E:\pinguino32X\library\examples\clavier\NoName0.o


Code:
#include <keypad.h>

uchar rows = 4;
uchar cols = 4;

KeypadState state;
char currentKey;
unsigned long lastUpdate;
unsigned int debounceTime;
unsigned int holdTime;
void Keypad_setDebounceTime(unsigned int debounce);
void Keypad_setHoldTime(unsigned int hold);

char keypadmap[4][4] = {
  {'0','1','2','3'},
  {'4','5','6','7'},
  {'8','9','A','B'},
  {'C','D','E','F'}
};
unsigned char *rowp = {3, 2, 1, 0}; //connect to the row pinouts of the keypad
unsigned char *colp = {7, 6, 5, 4}; //connect to the column pinouts of the keypad
void Keypad_transitionTo(KeypadState newState);
void Keypad_initializePins();
void Keypad_init(char *keypadmap, uchar *rowp, uchar *colp, uchar rows, uchar cols);


void setup ()
{
Keypad_init(*keypadmap,*rowp,*colp,rows,cols);

    Serial.begin(9600);
}

void loop ()
{

unsigned char key;

key = Keypad_getKey();

if (key != NO_KEY)
    {
    Serial.println(key);
    }
}

Merci de votre patience.
Reply


Messages In This Thread
Pinguino32X + keypad librairie - by j3r0m3 - 08-11-2011, 01:10 AM
RE: Pinguino32X + keypad librairie - by j3r0m3 - 08-11-2011, 10:29 PM
RE: Pinguino32X + keypad librairie - by regis - 08-11-2011, 10:51 PM
RE: Pinguino32X + keypad librairie - by j3r0m3 - 09-11-2011, 01:20 AM
RE: Pinguino32X + keypad librairie - by regis - 09-11-2011, 10:00 AM
RE: Pinguino32X + keypad librairie - by j3r0m3 - 10-11-2011, 12:44 PM
RE: Pinguino32X + keypad librairie - by j3r0m3 - 11-11-2011, 11:44 AM
RE: Pinguino32X + keypad librairie - by j3r0m3 - 11-11-2011, 06:19 PM
RE: Pinguino32X + keypad librairie - by j3r0m3 - 12-11-2011, 02:40 PM
RE: Pinguino32X + keypad librairie - by malagas - 22-01-2013, 04:18 PM
RE: Pinguino32X + keypad librairie - by Cristobal - 16-06-2018, 04:44 PM
RE: Pinguino32X + keypad librairie - by Cristobal - 16-06-2018, 05:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)