From 0e9f3aa8161607589a8b3b4ee5ee8e1cbbfb5abd Mon Sep 17 00:00:00 2001 From: Ricardo Lima Caratti Date: Fri, 26 Jul 2024 14:02:42 -0300 Subject: [PATCH] Doc --- .DS_Store | Bin 6148 -> 6148 bytes .../NANO_QN8066_LCD16x02_V3.ino | 10 ++++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.DS_Store b/.DS_Store index 0a5e23022cbb6fe67fa93276dc09da21436a0380..e38f002ff90ab0415aa1ee383968096d14a3341a 100644 GIT binary patch delta 14 VcmZoMXffDe$jZpL*@*R$5C9<11RnqZ delta 14 VcmZoMXffDe$jZpD*@*R$5C9;`1RekY diff --git a/examples/03_LCD_16x2_AND_20x4/NANO_QN8066_LCD16x02_V3/NANO_QN8066_LCD16x02_V3.ino b/examples/03_LCD_16x2_AND_20x4/NANO_QN8066_LCD16x02_V3/NANO_QN8066_LCD16x02_V3.ino index 40c7a34..34ce1ac 100644 --- a/examples/03_LCD_16x2_AND_20x4/NANO_QN8066_LCD16x02_V3/NANO_QN8066_LCD16x02_V3.ino +++ b/examples/03_LCD_16x2_AND_20x4/NANO_QN8066_LCD16x02_V3/NANO_QN8066_LCD16x02_V3.ino @@ -94,9 +94,7 @@ #define PWM_PA 9 #define STEP_FREQ 1 - -#define PUSH_MIN_DELAY 150 - +#define PUSH_MIN_DELAY 125 #define TIME_PAGE 5000 uint32_t timePage = millis(); @@ -336,9 +334,9 @@ void readAllTransmitterInformation() { // Enable or disable PWM duty cycle void enablePWM(uint8_t value) { - delay(200); + delay(300); analogWrite(PWM_PA, value); // Turn PA off - delay(200); + delay(300); } // Switches the the current frequency to a new frequency void switchTxFrequency(uint16_t freq) { @@ -525,7 +523,7 @@ void runAction(void (*actionFunc)(uint8_t), KeyValue *tab, uint8_t step, uint8_ else tab->key = tab->key - step; } - actionFunc(tab->key); + actionFunc(tab->value[tab->key].idx); showParameter((char *) tab->value[tab->key].desc); key = browseParameter(); }