Hi there,
I want to post my "14x7" Dartboard config.
The "problem" was the big matrix cause the inner single circle is different the other one.
i got the arduino mega for it, and doubles some keys.
/* @file CustomKeypad.pde|| @version 1.0|||| @description|| | Demonstrates changing the keypad size and key values.|| #*//*#include <Keypad.h>*//* Note : This file should be adapted to your the wires that you havec connected to your arduino controler !*/constbytenumRows=7;//forrowsconstbytenumCols=14;//forcolumnsconstintdebounceTime=100;//20worksbetterthangreat!//definethecymbolsonthebuttonsofthekeypadscharkeymap[numRows][numCols]={{'0','1','2','3','4','5','6','7','8','9','*','a','b','c'},{'d','e','f','g','h','i','j','k','l','m','n','o','p','r'},{'s','t','2','3','w','x','y','k','l','m','C','D','E','F'},{'G','H','I','J','K','L','M','N','O','P','R','S','T','U'},{'d','t','X','Y','Z','5',')','!','§','v','C','a','/','['},{'0','=','?','z','A','i','@','%','V','+','-','o','W','²'},{'³','1','X','Y','B','½','&','!','§','v','n','>','u',']'}};byterowPins[numRows]={31,33,35,37,39,41,43};//connecttotherowpinoutsofthekeypadbytecolPins[numCols]={22,24,26,28,30,32,34,36,38,40,42,44,46,48};//connecttothecolumnpinoutsofthekeypad//initializeaninstanceofclassNewKeypad/*Keypad customKeypad = Keypad( makeKeymap(Keys), rowPins, colPins, ROWS, COLS); */voidsetup(){Serial.begin(9600);for(introw=0;row<numRows;row++){pinMode(rowPins[row],INPUT);//SetrowpinsasinputdigitalWrite(rowPins[row],HIGH);//turnonPull-ups}for(intcolumn=0;column<numCols;column++){pinMode(colPins[column],OUTPUT);//Setcolumnpinsasoutputs//forwritingdigitalWrite(colPins[column],HIGH);//Makeallcolumnsinactive}}voidloop(){charkey=getKey();if(key!=0){//ifthecharacterisnot0then//it'savalidkeypress/*Serial.print("Got key ");*/Serial.print(key);}}//returnswiththekeypressed,or0ifnokeyispressedchargetKey(){charkey=0;//0indicatesnokeypressedfor(intcolumn=0;column<numCols;column++){digitalWrite(colPins[column],LOW);//Activatethecurrentcolumn.for(introw=0;row<numRows;row++)//Scanallrowsfor//akeypress.{if(digitalRead(rowPins[row])==LOW)//Isakeypressed?{delay(debounceTime);//debouncewhile(digitalRead(rowPins[row])==LOW);//waitforkeytobereleasedkey=keymap[row][column];//Rememberwhichkey//waspressed.}}digitalWrite(colPins[column],HIGH);//De-activatethecurrentcolumn.}returnkey;//returnsthekeypressedor0ifnone}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I want to post my "14x7" Dartboard config.
The "problem" was the big matrix cause the inner single circle is different the other one.
i got the arduino mega for it, and doubles some keys.
Good JOB