From ad9407c2c75c55473022acaefe9620abea224e90 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Wed, 3 May 2023 17:44:37 +0900 Subject: [PATCH] vertical resolution muted. == merge grounds.. --- arduino/rainboard/rainboard.ino | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arduino/rainboard/rainboard.ino b/arduino/rainboard/rainboard.ino index cac05b8..139415e 100644 --- a/arduino/rainboard/rainboard.ino +++ b/arduino/rainboard/rainboard.ino @@ -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);