vertical resolution muted. == merge grounds..

This commit is contained in:
Dooho Yi 2023-05-03 17:44:37 +09:00
parent 7877b06578
commit ad9407c2c7

View file

@ -21,9 +21,11 @@ WiFiServerStream serverStream(NETWORK_PORT);
////pad structure ////pad structure
// #define FLIPPED #define FLIPPED
// --> comment/uncomment for horizontal flipping of the installation. // --> comment/uncomment for horizontal flipping of the installation.
#define MERGED_STRIPE
#define NUMKEYS 42 // columns : 14, rows : 3 #define NUMKEYS 42 // columns : 14, rows : 3
// --> how many keys are available for this pad // --> how many keys are available for this pad
@ -120,8 +122,16 @@ void loop()
if (row >= NUMROWS) { if (row >= NUMROWS) {
row = 0; 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); pinMode(pins_rows[row], OUTPUT);
digitalWrite(pins_rows[row], LOW); // let new 'hi-z' row goes 'on'.. -> ready to scan. digitalWrite(pins_rows[row], LOW); // let new 'hi-z' row goes 'on'.. -> ready to scan.
#endif
// 100us ~ 200us, waiting for the electricity ready... // 100us ~ 200us, waiting for the electricity ready...
//delayMicroseconds(200); //delayMicroseconds(200);