vertical resolution muted. == merge grounds..
This commit is contained in:
parent
7877b06578
commit
ad9407c2c7
1 changed files with 11 additions and 1 deletions
|
|
@ -21,9 +21,11 @@ WiFiServerStream serverStream(NETWORK_PORT);
|
|||
|
||||
////pad structure
|
||||
|
||||
// #define FLIPPED
|
||||
#define FLIPPED
|
||||
// --> comment/uncomment for horizontal flipping of the installation.
|
||||
|
||||
#define MERGED_STRIPE
|
||||
|
||||
#define NUMKEYS 42 // columns : 14, rows : 3
|
||||
// --> how many keys are available for this pad
|
||||
|
||||
|
|
@ -120,8 +122,16 @@ void loop()
|
|||
if (row >= NUMROWS) {
|
||||
row = 0;
|
||||
}
|
||||
#if defined(MERGED_STRIPE)
|
||||
// let all rows go 'on' together. => no vertical resolution.
|
||||
for (int rr = 0; rr < NUMROWS; rr++) {
|
||||
pinMode(pins_rows[rr], OUTPUT);
|
||||
digitalWrite(pins_rows[rr], LOW); // let new 'hi-z' row goes 'on'.. -> ready to scan.
|
||||
}
|
||||
#else
|
||||
pinMode(pins_rows[row], OUTPUT);
|
||||
digitalWrite(pins_rows[row], LOW); // let new 'hi-z' row goes 'on'.. -> ready to scan.
|
||||
#endif
|
||||
|
||||
// 100us ~ 200us, waiting for the electricity ready...
|
||||
//delayMicroseconds(200);
|
||||
|
|
|
|||
Loading…
Reference in a new issue