hoernertee

cols raws

Dec 8th, 2021 (edited)
535
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // config1
  2.  
  3. const byte numRows = 4;
  4. const byte numCols = 16;
  5.  
  6. const int keymap[numRows][numCols] = {
  7.   {202, 102, 215, 115, 210, 110, 206, 106, 213, 113, 125, 302, 315, 310, 306, 313},
  8.   {204, 104, 218, 118, 201, 101, 220, 120, 205, 105, 998, 304, 318, 301, 320, 305},
  9.   {212, 112, 209, 109, 214, 114, 211, 111, 208, 108, 999, 312, 309, 314, 311, 308},
  10.   {216, 116, 207, 107, 219, 119, 203, 103, 217, 117, 225, 316, 307, 319, 303, 317}
  11. };
  12.  
  13. int rowPins[numRows] = {4, 2, 31, 29};
  14. int colPins[numCols] = {27, 25, 23, 22, 17, 16, 15, 12, 11, 9, 7, 5, 3, 10, 8, 6};
  15.  
  16.  
  17. // cnfig 2
  18.  
  19. const byte numRows = 8;
  20. const byte numCols = 8;
  21.  
  22. const int keymap[numRows][numCols] = {
  23.   {115, 117, 119, 116, 111, 109, 105, 101},
  24.   {213, 999, 125, 113, 313, 104, 304, 204},
  25.   {206, 225, 998, 106, 306, 118, 318, 218},
  26.   {210, 202, 203, 207, 208, 214, 212, 220},
  27.   {215, 217, 219, 216, 211, 209, 205, 201},
  28.   {110, 102, 103, 107, 108, 114, 112, 120},
  29.   {310, 302, 303, 307, 308, 314, 312, 320},
  30.   {315, 317, 319, 316, 311, 309, 305, 301}
  31. };
  32.  
  33. int rowPins[numRows] = {10, 3, 5, 7, 9, 11, 12, 15}; // Pin 1 bis 8
  34. int colPins[numCols] = {17, 19, 22, 23, 25, 27, 29, 31};
  35.  
RAW Paste Data