Topics

Sketch µBITX-V6 version 6.3.1 Arduino-IDE error in the complication on the NANO EVERY board. #nano #v6 #ubitxv6


 

Hi everyone,
I would like to use the NANO EVERY board to compile the µBITX V6 software to have more memory space for the program and to be able to add parts for the S-meter and SWR-meter without going crazy with the space of an OLD NANO clone ...
The problem is:
trying to compile version 6.3.1 present in https://github.com/afarhan/ubitxv6 with version 1.8.13 of the Arduino-IDE, the compiler lists a disproportionate number of errors and does not compile the software.
I specify that I used the NANO EVERY in both possible ways, ATMEGA328 and ATMEGA4809, never results were identical in both ways.
Does anyone know how to fix it?
Having 49152 bytes available for the sketch and 6144 bytes for the variables seems to me to be a great step forward !!!!


Jack, W8TEE
 

You need to copy the error message list to a TXT file and post it, as that's about the only way to see what's going on. Also, what OS are you using and which version of the IDE and have you installed the proper device drivers? The device drivers are usually the CH340 or 341, but I don't know about the NANO EVERY.

Jack, W8TEE

On Friday, July 31, 2020, 2:59:54 PM EDT, IW4AJR Loris <iw4ajr@...> wrote:


Hi everyone,
I would like to use the NANO EVERY board to compile the µBITX V6 software to have more memory space for the program and to be able to add parts for the S-meter and SWR-meter without going crazy with the space of an OLD NANO clone ...
The problem is:
trying to compile version 6.3.1 present in https://github.com/afarhan/ubitxv6 with version 1.8.13 of the Arduino-IDE, the compiler lists a disproportionate number of errors and does not compile the software.
I specify that I used the NANO EVERY in both possible ways, ATMEGA328 and ATMEGA4809, never results were identical in both ways.
Does anyone know how to fix it?
Having 49152 bytes available for the sketch and 6144 bytes for the variables seems to me to be a great step forward !!!!

--
Jack, W8TEE


 

I use 1.8.13 Arduino-IDE over iMac with MacOS 10.14.6
The device driver is not important during verification sketch , bat is not problematic, other sketch working very well with integrate drivers in MacOS.

Following the list of the errors obtained in both use mode of NANO EVERY original Arduino board

in ATMEGA328 version, the list of errors is that (verify sketch):

Arduino:1.8.13 (Mac OS X), Scheda:"Arduino Nano Every, ATMEGA328"
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void PCINT1_vect()':
sketch/encoder.cpp:24:6: warning: 'PCINT1_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR (PCINT1_vect)
      ^
sketch/encoder.cpp: In function 'void pci_setup(byte)':
encoder.cpp:63:4: error: 'digitalPinToPCMSK' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
sketch/encoder.cpp:63:4: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
    digitalPinToPort
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:63:35: error: 'digitalPinToPCMSKbit' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/encoder.cpp:63:35: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:64:3: error: 'PCIFR' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
   ^~~~~
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:64:18: error: 'digitalPinToPCICRbit' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/encoder.cpp:64:18: note: suggested alternative: 'digitalPinToPort'
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:65:3: error: 'PCICR' was not declared in this scope
   PCICR  |= bit (digitalPinToPCICRbit(pin)); // enable interrupt for the group
   ^~~~~
sketch/encoder.cpp: In function 'void enc_setup()':
encoder.cpp:81:3: error: 'TCCR1A' was not declared in this scope
   TCCR1A = 0;//"normal" mode
   ^~~~~~
sketch/encoder.cpp:81:3: note: suggested alternative: 'TCB1'
   TCCR1A = 0;//"normal" mode
   ^~~~~~
   TCB1
encoder.cpp:82:3: error: 'TCCR1B' was not declared in this scope
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
sketch/encoder.cpp:82:3: note: suggested alternative: 'TCB1'
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
   TCB1
encoder.cpp:83:3: error: 'TCNT1' was not declared in this scope
   TCNT1  = 0;//start counting at 0
   ^~~~~
sketch/encoder.cpp:83:3: note: suggested alternative: 'TCB1'
   TCNT1  = 0;//start counting at 0
   ^~~~~
   TCB1
encoder.cpp:84:3: error: 'OCR1A' was not declared in this scope
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
   ^~~~~
sketch/encoder.cpp:84:18: warning: integer overflow in expression [-Woverflow]
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
encoder.cpp:85:3: error: 'TIMSK1' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:85:3: note: suggested alternative: 'TIMERB1'
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
   TIMERB1
encoder.cpp:85:19: error: 'OCIE1A' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
                   ^~~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void TIMER1_COMPA_vect()':
sketch/encoder.cpp:88:5: warning: 'TIMER1_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR(TIMER1_COMPA_vect)
     ^
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp: In function 'void setupFreq()':
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set Frequency", "Push TUNE to Save");
                                                     ^
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:40:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("You should have a", 20, 50, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:41:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("signal exactly at ", 20, 75, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                          ^
sketch/setup.cpp:46:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Rotate to zerobeat", 20, 180, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                           ^
sketch/setup.cpp: In function 'void setupBFO()':
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set BFO", "Press TUNE to Save");
                                                ^
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp: In function 'void displayVFO(int)':
sketch/ubitx_ui.cpp:186:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOA", &b);
                         ^
sketch/setup.cpp: In function 'void setupCwDelay()':
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW T/R Delay", "Press tune to Save");
                                                         ^
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:207:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOB", &b);
                         ^
sketch/setup.cpp: In function 'void setupKeyer()':
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW Keyer", "Press tune to Save");
                                                     ^
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:175:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/nano_gui.cpp: In function 'void displayInit()':
sketch/nano_gui.cpp:292:13: warning: invalid conversion from 'const GFXfont*' to 'GFXfont*' [-fpermissive]
   gfxFont = &ubitx_font;
             ^~~~~~~~~~~
sketch/setup.cpp:177:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:179:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:206:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:208:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:210:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp: In function 'void drawSetupMenu()':
sketch/setup.cpp:233:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Setup", 10, 10, 300, 35, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_WHITE);
                                                                                   ^
sketch/setup.cpp:236:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set Freq...", 30, 50, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                    ^
sketch/setup.cpp:237:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set BFO...", 30, 80, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                   ^
sketch/setup.cpp:238:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Delay...", 30, 110, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:239:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Keyer...", 30, 140, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:240:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Touch Screen...", 30, 170, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:241:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Exit", 30, 200, DISPLAY_WHITE, DISPLAY_NAVY);
                                                              ^
sketch/ubitx_ui.cpp: In function 'void displayRIT()':
sketch/ubitx_ui.cpp:293:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 0, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                               ^
sketch/ubitx_ui.cpp:295:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 160, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                                 ^
sketch/ubitx_ui.cpp: In function 'void fastTune()':
sketch/ubitx_ui.cpp:307:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Fast tune", 100, 55, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                  ^
sketch/ubitx_ui.cpp: In function 'void drawTx()':
sketch/ubitx_ui.cpp:424:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("TX", 280, 48, 37, 28, DISPLAY_BLACK, DISPLAY_ORANGE, DISPLAY_BLUE);
                                                                                   ^
sketch/ubitx_ui.cpp: In function 'void splitToggle(Button*)':
sketch/ubitx_ui.cpp:557:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("RIT", &b2);
                       ^
sketch/ubitx_ui.cpp: In function 'void vfoReset()':
sketch/ubitx_ui.cpp:575:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("SPL", &b);
                        ^
sketch/ubitx_ui.cpp:580:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp: In function 'void sidebandToggle(Button*)':
sketch/ubitx_ui.cpp:610:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("USB", &e);
                      ^
sketch/ubitx_ui.cpp:612:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("LSB", &e);
                      ^
sketch/ubitx_ui.cpp: In function 'void redrawVFOs()':
sketch/ubitx_ui.cpp:623:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp:632:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("LSB", &b);
                        ^
sketch/ubitx_ui.cpp:634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("USB", &b);
                        ^
sketch/ubitx_ui.cpp: In function 'int setCwSpeed()':
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     wpm = getValueByKnob(1, 100, 1,  wpm, "CW: ", " WPM");
                                                         ^
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/nano_gui.cpp: In function 'void setupTouch()':
sketch/nano_gui.cpp:490:97: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Click on the cross", 20,100, 200, 50, DISPLAY_WHITE, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                 ^
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino: In function 'void setup()':
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino:817:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("v6.1", 270, 210, DISPLAY_LIGHTGREY, DISPLAY_NAVY);
                                                                   ^
exit status 1
'digitalPinToPCMSK' was not declared in this scope
 
in native version (ATMEGA4809) is the error list is (verify sketch):

Arduino:1.8.13 (Mac OS X), Scheda:"Arduino Nano Every, None (ATMEGA4809)"
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void PCINT1_vect()':
sketch/encoder.cpp:24:6: warning: 'PCINT1_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR (PCINT1_vect)
      ^
sketch/encoder.cpp: In function 'void pci_setup(byte)':
encoder.cpp:63:4: error: 'digitalPinToPCMSK' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
sketch/encoder.cpp:63:4: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
    digitalPinToPort
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:63:35: error: 'digitalPinToPCMSKbit' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/encoder.cpp:63:35: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:64:3: error: 'PCIFR' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
   ^~~~~
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:64:18: error: 'digitalPinToPCICRbit' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/setup.cpp: In function 'void setupFreq()':
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set Frequency", "Push TUNE to Save");
                                                     ^
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:40:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("You should have a", 20, 50, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:41:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("signal exactly at ", 20, 75, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                          ^
sketch/setup.cpp:46:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Rotate to zerobeat", 20, 180, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                           ^
sketch/setup.cpp: In function 'void setupBFO()':
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set BFO", "Press TUNE to Save");
                                                ^
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp: In function 'void setupCwDelay()':
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW T/R Delay", "Press tune to Save");
                                                         ^
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp: In function 'void setupKeyer()':
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW Keyer", "Press tune to Save");
                                                     ^
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:175:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:177:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:179:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:206:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:208:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:210:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp: In function 'void drawSetupMenu()':
sketch/setup.cpp:233:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Setup", 10, 10, 300, 35, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_WHITE);
                                                                                   ^
sketch/setup.cpp:236:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set Freq...", 30, 50, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                    ^
sketch/setup.cpp:237:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set BFO...", 30, 80, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                   ^
sketch/setup.cpp:238:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Delay...", 30, 110, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:239:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Keyer...", 30, 140, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:240:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Touch Screen...", 30, 170, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:241:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Exit", 30, 200, DISPLAY_WHITE, DISPLAY_NAVY);
                                                              ^
sketch/encoder.cpp:64:18: note: suggested alternative: 'digitalPinToPort'
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:65:3: error: 'PCICR' was not declared in this scope
   PCICR  |= bit (digitalPinToPCICRbit(pin)); // enable interrupt for the group
   ^~~~~
sketch/encoder.cpp: In function 'void enc_setup()':
encoder.cpp:81:3: error: 'TCCR1A' was not declared in this scope
   TCCR1A = 0;//"normal" mode
   ^~~~~~
sketch/encoder.cpp:81:3: note: suggested alternative: 'TCB1'
   TCCR1A = 0;//"normal" mode
   ^~~~~~
   TCB1
encoder.cpp:82:3: error: 'TCCR1B' was not declared in this scope
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:82:3: note: suggested alternative: 'TCB1'
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
   TCB1
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
encoder.cpp:83:3: error: 'TCNT1' was not declared in this scope
   TCNT1  = 0;//start counting at 0
   ^~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:83:3: note: suggested alternative: 'TCB1'
   TCNT1  = 0;//start counting at 0
   ^~~~~
   TCB1
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
encoder.cpp:84:3: error: 'OCR1A' was not declared in this scope
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
   ^~~~~
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:84:18: warning: integer overflow in expression [-Woverflow]
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
encoder.cpp:85:3: error: 'TIMSK1' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
sketch/nano_gui.cpp: In function 'void displayInit()':
sketch/nano_gui.cpp:292:13: warning: invalid conversion from 'const GFXfont*' to 'GFXfont*' [-fpermissive]
   gfxFont = &ubitx_font;
             ^~~~~~~~~~~
sketch/encoder.cpp:85:3: note: suggested alternative: 'TIMERB1'
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
   TIMERB1
encoder.cpp:85:19: error: 'OCIE1A' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
                   ^~~~~~
sketch/ubitx_ui.cpp: In function 'void displayVFO(int)':
sketch/ubitx_ui.cpp:186:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOA", &b);
                         ^
sketch/ubitx_ui.cpp:207:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOB", &b);
                         ^
sketch/ubitx_ui.cpp: In function 'void displayRIT()':
sketch/ubitx_ui.cpp:293:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 0, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                               ^
sketch/ubitx_ui.cpp:295:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 160, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                                 ^
sketch/ubitx_ui.cpp: In function 'void fastTune()':
sketch/ubitx_ui.cpp:307:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Fast tune", 100, 55, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                  ^
sketch/nano_gui.cpp: In function 'void setupTouch()':
sketch/nano_gui.cpp:490:97: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Click on the cross", 20,100, 200, 50, DISPLAY_WHITE, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                 ^
sketch/ubitx_ui.cpp: In function 'void drawTx()':
sketch/ubitx_ui.cpp:424:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("TX", 280, 48, 37, 28, DISPLAY_BLACK, DISPLAY_ORANGE, DISPLAY_BLUE);
                                                                                   ^
sketch/ubitx_ui.cpp: In function 'void splitToggle(Button*)':
sketch/ubitx_ui.cpp:557:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("RIT", &b2);
                       ^
sketch/ubitx_ui.cpp: In function 'void vfoReset()':
sketch/ubitx_ui.cpp:575:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("SPL", &b);
                        ^
sketch/ubitx_ui.cpp:580:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp: In function 'void sidebandToggle(Button*)':
sketch/ubitx_ui.cpp:610:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("USB", &e);
                      ^
sketch/ubitx_ui.cpp:612:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("LSB", &e);
                      ^
sketch/ubitx_ui.cpp: In function 'void redrawVFOs()':
sketch/ubitx_ui.cpp:623:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp:632:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("LSB", &b);
                        ^
sketch/ubitx_ui.cpp:634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("USB", &b);
                        ^
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void TIMER1_COMPA_vect()':
sketch/encoder.cpp:88:5: warning: 'TIMER1_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR(TIMER1_COMPA_vect)
     ^
sketch/ubitx_ui.cpp: In function 'int setCwSpeed()':
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     wpm = getValueByKnob(1, 100, 1,  wpm, "CW: ", " WPM");
                                                         ^
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino: In function 'void setup()':
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino:817:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("v6.1", 270, 210, DISPLAY_LIGHTGREY, DISPLAY_NAVY);
                                                                   ^
exit status 1
'digitalPinToPCMSK' was not declared in this scope
 


Gary Anderson
 

Loris,
FYI: On a Windows 10 machine, I had a successful compile with IDE version 1.8.12.  (older version than you used)
I installed "Board Manager" Arduino megaAVR Boards vs 1.8.6 for this test compile.

Also note that ATMega 4809 on the EVERY only has 256B of EEPROM (vs 1kB for the 328P on the NANO clone)
You will need to change the memory map in the HF Signals ubitx code:
#define VFO_A_MODE  256 // 2: LSB, 3: USB
#define VFO_B_MODE  257
#define CW_KEY_TYPE 358
You have plenty of room. (you would not for KD8CEC code!)
 
Rgds,
Gary


Jack, W8TEE
 

Some of the errors look to me like an #include file is missing. Check your library directory to make sure you have all of the header (*.h) files included.

A lot of the errors are of the
                                                
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

variety. Those are easy to fix. For example, this is on of the errors:

   displayDialog("Set BFO", "Press TUNE to Save");

The latest version of the compiler treats string constant differently. To fix these, just cast the string constant to a char pointer:

   displayDialog((char *) "Set BFO", (char *) "Press TUNE to Save");

and those should go away.

Jack, W8TEE


On Friday, July 31, 2020, 3:31:42 PM EDT, IW4AJR Loris <iw4ajr@...> wrote:


I use 1.8.13 Arduino-IDE over iMac with MacOS 10.14.6
The device driver is not important during verification sketch , bat is not problematic, other sketch working very well with integrate drivers in MacOS.

Following the list of the errors obtained in both use mode of NANO EVERY original Arduino board

in ATMEGA328 version, the list of errors is that (verify sketch):

Arduino:1.8.13 (Mac OS X), Scheda:"Arduino Nano Every, ATMEGA328"
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void PCINT1_vect()':
sketch/encoder.cpp:24:6: warning: 'PCINT1_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR (PCINT1_vect)
      ^
sketch/encoder.cpp: In function 'void pci_setup(byte)':
encoder.cpp:63:4: error: 'digitalPinToPCMSK' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
sketch/encoder.cpp:63:4: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
    digitalPinToPort
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:63:35: error: 'digitalPinToPCMSKbit' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/encoder.cpp:63:35: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:64:3: error: 'PCIFR' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
   ^~~~~
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:64:18: error: 'digitalPinToPCICRbit' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/encoder.cpp:64:18: note: suggested alternative: 'digitalPinToPort'
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:65:3: error: 'PCICR' was not declared in this scope
   PCICR  |= bit (digitalPinToPCICRbit(pin)); // enable interrupt for the group
   ^~~~~
sketch/encoder.cpp: In function 'void enc_setup()':
encoder.cpp:81:3: error: 'TCCR1A' was not declared in this scope
   TCCR1A = 0;//"normal" mode
   ^~~~~~
sketch/encoder.cpp:81:3: note: suggested alternative: 'TCB1'
   TCCR1A = 0;//"normal" mode
   ^~~~~~
   TCB1
encoder.cpp:82:3: error: 'TCCR1B' was not declared in this scope
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
sketch/encoder.cpp:82:3: note: suggested alternative: 'TCB1'
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
   TCB1
encoder.cpp:83:3: error: 'TCNT1' was not declared in this scope
   TCNT1  = 0;//start counting at 0
   ^~~~~
sketch/encoder.cpp:83:3: note: suggested alternative: 'TCB1'
   TCNT1  = 0;//start counting at 0
   ^~~~~
   TCB1
encoder.cpp:84:3: error: 'OCR1A' was not declared in this scope
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
   ^~~~~
sketch/encoder.cpp:84:18: warning: integer overflow in expression [-Woverflow]
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
encoder.cpp:85:3: error: 'TIMSK1' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:85:3: note: suggested alternative: 'TIMERB1'
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
   TIMERB1
encoder.cpp:85:19: error: 'OCIE1A' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
                   ^~~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void TIMER1_COMPA_vect()':
sketch/encoder.cpp:88:5: warning: 'TIMER1_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR(TIMER1_COMPA_vect)
     ^
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp: In function 'void setupFreq()':
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set Frequency", "Push TUNE to Save");
                                                     ^
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:40:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("You should have a", 20, 50, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:41:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("signal exactly at ", 20, 75, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                          ^
sketch/setup.cpp:46:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Rotate to zerobeat", 20, 180, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                           ^
sketch/setup.cpp: In function 'void setupBFO()':
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set BFO", "Press TUNE to Save");
                                                ^
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp: In function 'void displayVFO(int)':
sketch/ubitx_ui.cpp:186:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOA", &b);
                         ^
sketch/setup.cpp: In function 'void setupCwDelay()':
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW T/R Delay", "Press tune to Save");
                                                         ^
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:207:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOB", &b);
                         ^
sketch/setup.cpp: In function 'void setupKeyer()':
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW Keyer", "Press tune to Save");
                                                     ^
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:175:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/nano_gui.cpp: In function 'void displayInit()':
sketch/nano_gui.cpp:292:13: warning: invalid conversion from 'const GFXfont*' to 'GFXfont*' [-fpermissive]
   gfxFont = &ubitx_font;
             ^~~~~~~~~~~
sketch/setup.cpp:177:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:179:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:206:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:208:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:210:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp: In function 'void drawSetupMenu()':
sketch/setup.cpp:233:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Setup", 10, 10, 300, 35, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_WHITE);
                                                                                   ^
sketch/setup.cpp:236:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set Freq...", 30, 50, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                    ^
sketch/setup.cpp:237:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set BFO...", 30, 80, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                   ^
sketch/setup.cpp:238:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Delay...", 30, 110, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:239:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Keyer...", 30, 140, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:240:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Touch Screen...", 30, 170, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:241:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Exit", 30, 200, DISPLAY_WHITE, DISPLAY_NAVY);
                                                              ^
sketch/ubitx_ui.cpp: In function 'void displayRIT()':
sketch/ubitx_ui.cpp:293:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 0, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                               ^
sketch/ubitx_ui.cpp:295:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 160, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                                 ^
sketch/ubitx_ui.cpp: In function 'void fastTune()':
sketch/ubitx_ui.cpp:307:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Fast tune", 100, 55, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                  ^
sketch/ubitx_ui.cpp: In function 'void drawTx()':
sketch/ubitx_ui.cpp:424:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("TX", 280, 48, 37, 28, DISPLAY_BLACK, DISPLAY_ORANGE, DISPLAY_BLUE);
                                                                                   ^
sketch/ubitx_ui.cpp: In function 'void splitToggle(Button*)':
sketch/ubitx_ui.cpp:557:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("RIT", &b2);
                       ^
sketch/ubitx_ui.cpp: In function 'void vfoReset()':
sketch/ubitx_ui.cpp:575:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("SPL", &b);
                        ^
sketch/ubitx_ui.cpp:580:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp: In function 'void sidebandToggle(Button*)':
sketch/ubitx_ui.cpp:610:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("USB", &e);
                      ^
sketch/ubitx_ui.cpp:612:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("LSB", &e);
                      ^
sketch/ubitx_ui.cpp: In function 'void redrawVFOs()':
sketch/ubitx_ui.cpp:623:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp:632:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("LSB", &b);
                        ^
sketch/ubitx_ui.cpp:634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("USB", &b);
                        ^
sketch/ubitx_ui.cpp: In function 'int setCwSpeed()':
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     wpm = getValueByKnob(1, 100, 1,  wpm, "CW: ", " WPM");
                                                         ^
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/nano_gui.cpp: In function 'void setupTouch()':
sketch/nano_gui.cpp:490:97: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Click on the cross", 20,100, 200, 50, DISPLAY_WHITE, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                 ^
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino: In function 'void setup()':
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino:817:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("v6.1", 270, 210, DISPLAY_LIGHTGREY, DISPLAY_NAVY);
                                                                   ^
exit status 1
'digitalPinToPCMSK' was not declared in this scope
 
in native version (ATMEGA4809) is the error list is (verify sketch):

Arduino:1.8.13 (Mac OS X), Scheda:"Arduino Nano Every, None (ATMEGA4809)"
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void PCINT1_vect()':
sketch/encoder.cpp:24:6: warning: 'PCINT1_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR (PCINT1_vect)
      ^
sketch/encoder.cpp: In function 'void pci_setup(byte)':
encoder.cpp:63:4: error: 'digitalPinToPCMSK' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
sketch/encoder.cpp:63:4: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
    ^~~~~~~~~~~~~~~~~
    digitalPinToPort
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:63:35: error: 'digitalPinToPCMSKbit' was not declared in this scope
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/encoder.cpp:63:35: note: suggested alternative: 'digitalPinToPort'
   *digitalPinToPCMSK(pin) |= bit (digitalPinToPCMSKbit(pin));  // enable pin
                                   ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:64:3: error: 'PCIFR' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
   ^~~~~
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/HardwareSPI.h:21:0,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/ArduinoAPI.h:31,
                 from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:23,
                 from sketch/encoder.cpp:1:
encoder.cpp:64:18: error: 'digitalPinToPCICRbit' was not declared in this scope
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
sketch/setup.cpp: In function 'void setupFreq()':
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set Frequency", "Push TUNE to Save");
                                                     ^
sketch/setup.cpp:33:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:40:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("You should have a", 20, 50, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:41:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("signal exactly at ", 20, 75, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                          ^
sketch/setup.cpp:46:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Rotate to zerobeat", 20, 180, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                           ^
sketch/setup.cpp: In function 'void setupBFO()':
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set BFO", "Press TUNE to Save");
                                                ^
sketch/setup.cpp:102:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp: In function 'void setupCwDelay()':
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW T/R Delay", "Press tune to Save");
                                                         ^
sketch/setup.cpp:135:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp: In function 'void setupKeyer()':
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayDialog("Set CW Keyer", "Press tune to Save");
                                                     ^
sketch/setup.cpp:172:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/setup.cpp:175:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:177:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:179:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                              ^
sketch/setup.cpp:206:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Hand Key >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:208:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic A >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp:210:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("< Iambic B >", 100, 100, 120, 26, DISPLAY_CYAN, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                ^
sketch/setup.cpp: In function 'void drawSetupMenu()':
sketch/setup.cpp:233:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Setup", 10, 10, 300, 35, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_WHITE);
                                                                                   ^
sketch/setup.cpp:236:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set Freq...", 30, 50, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                    ^
sketch/setup.cpp:237:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Set BFO...", 30, 80, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                   ^
sketch/setup.cpp:238:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Delay...", 30, 110, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:239:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("CW Keyer...", 30, 140, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                     ^
sketch/setup.cpp:240:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Touch Screen...", 30, 170, DISPLAY_WHITE, DISPLAY_NAVY);
                                                                         ^
sketch/setup.cpp:241:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Exit", 30, 200, DISPLAY_WHITE, DISPLAY_NAVY);
                                                              ^
sketch/encoder.cpp:64:18: note: suggested alternative: 'digitalPinToPort'
   PCIFR  |= bit (digitalPinToPCICRbit(pin)); // clear any outstanding interrupt
                  ^
/Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Common.h:70:25: note: in definition of macro 'bit'
 #define bit(b) (1UL << (b))
                         ^
encoder.cpp:65:3: error: 'PCICR' was not declared in this scope
   PCICR  |= bit (digitalPinToPCICRbit(pin)); // enable interrupt for the group
   ^~~~~
sketch/encoder.cpp: In function 'void enc_setup()':
encoder.cpp:81:3: error: 'TCCR1A' was not declared in this scope
   TCCR1A = 0;//"normal" mode
   ^~~~~~
sketch/encoder.cpp:81:3: note: suggested alternative: 'TCB1'
   TCCR1A = 0;//"normal" mode
   ^~~~~~
   TCB1
encoder.cpp:82:3: error: 'TCCR1B' was not declared in this scope
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:82:3: note: suggested alternative: 'TCB1'
   TCCR1B = 3;//clock divider of 64
   ^~~~~~
   TCB1
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
encoder.cpp:83:3: error: 'TCNT1' was not declared in this scope
   TCNT1  = 0;//start counting at 0
   ^~~~~
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:47:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:83:3: note: suggested alternative: 'TCB1'
   TCNT1  = 0;//start counting at 0
   ^~~~~
   TCB1
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
encoder.cpp:84:3: error: 'OCR1A' was not declared in this scope
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
   ^~~~~
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/ubitx_ui.cpp:68:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sketch/encoder.cpp:84:18: warning: integer overflow in expression [-Woverflow]
   OCR1A  = F_CPU * CALLBACK_PERIOD_MS / 1000 / 64;//set target number
encoder.cpp:85:3: error: 'TIMSK1' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
sketch/nano_gui.cpp: In function 'void displayInit()':
sketch/nano_gui.cpp:292:13: warning: invalid conversion from 'const GFXfont*' to 'GFXfont*' [-fpermissive]
   gfxFont = &ubitx_font;
             ^~~~~~~~~~~
sketch/encoder.cpp:85:3: note: suggested alternative: 'TIMERB1'
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
   ^~~~~~
   TIMERB1
encoder.cpp:85:19: error: 'OCIE1A' was not declared in this scope
   TIMSK1 |= (1 << OCIE1A);//enable interrupt
                   ^~~~~~
sketch/ubitx_ui.cpp: In function 'void displayVFO(int)':
sketch/ubitx_ui.cpp:186:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOA", &b);
                         ^
sketch/ubitx_ui.cpp:207:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("VFOB", &b);
                         ^
sketch/ubitx_ui.cpp: In function 'void displayRIT()':
sketch/ubitx_ui.cpp:293:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 0, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                               ^
sketch/ubitx_ui.cpp:295:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
       displayText("", 160, 45,159, 30, DISPLAY_WHITE, DISPLAY_NAVY, DISPLAY_NAVY);
                                                                                 ^
sketch/ubitx_ui.cpp: In function 'void fastTune()':
sketch/ubitx_ui.cpp:307:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("Fast tune", 100, 55, DISPLAY_CYAN, DISPLAY_NAVY);
                                                                  ^
sketch/nano_gui.cpp: In function 'void setupTouch()':
sketch/nano_gui.cpp:490:97: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayText("Click on the cross", 20,100, 200, 50, DISPLAY_WHITE, DISPLAY_BLACK, DISPLAY_BLACK);
                                                                                                 ^
sketch/ubitx_ui.cpp: In function 'void drawTx()':
sketch/ubitx_ui.cpp:424:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     displayText("TX", 280, 48, 37, 28, DISPLAY_BLACK, DISPLAY_ORANGE, DISPLAY_BLUE);
                                                                                   ^
sketch/ubitx_ui.cpp: In function 'void splitToggle(Button*)':
sketch/ubitx_ui.cpp:557:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("RIT", &b2);
                       ^
sketch/ubitx_ui.cpp: In function 'void vfoReset()':
sketch/ubitx_ui.cpp:575:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("SPL", &b);
                        ^
sketch/ubitx_ui.cpp:580:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp: In function 'void sidebandToggle(Button*)':
sketch/ubitx_ui.cpp:610:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("USB", &e);
                      ^
sketch/ubitx_ui.cpp:612:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   getButton("LSB", &e);
                      ^
sketch/ubitx_ui.cpp: In function 'void redrawVFOs()':
sketch/ubitx_ui.cpp:623:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("RIT", &b);
                        ^
sketch/ubitx_ui.cpp:632:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("LSB", &b);
                        ^
sketch/ubitx_ui.cpp:634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     getButton("USB", &b);
                        ^
In file included from /Users/lorisbollina/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/Arduino.h:27:0,
                 from sketch/encoder.cpp:1:
sketch/encoder.cpp: In function 'void TIMER1_COMPA_vect()':
sketch/encoder.cpp:88:5: warning: 'TIMER1_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
 ISR(TIMER1_COMPA_vect)
     ^
sketch/ubitx_ui.cpp: In function 'int setCwSpeed()':
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     wpm = getValueByKnob(1, 100, 1,  wpm, "CW: ", " WPM");
                                                         ^
sketch/ubitx_ui.cpp:664:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino: In function 'void setup()':
/Users/lorisbollina/Desktop/ubitx_v6.1_code/ubitx_v6.1_code.ino:817:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   displayRawText("v6.1", 270, 210, DISPLAY_LIGHTGREY, DISPLAY_NAVY);
                                                                   ^
exit status 1
'digitalPinToPCMSK' was not declared in this scope
 

--
Jack, W8TEE


 

Thank you all !
I will try in the next week and I will report the results ...
Thank you again !


 

Hi Gary,
translating for EVERY the source code of KD8CEC was already my idea ... I'll try, but I can't guarantee the result ...
 
a warm greeting IW4AJR Loris


modestly confused
 

Using Arduino 8.1.13 on Windows 10
uBitX V6

I am very much a clueless noob but searching for the errors I was seeing brought me to this message.

Fooling around with X Loader I managed to whack my ubitx v6.1 and take myself to a white screen stage, or as I called it the white screen of stupid.  Trying to restore it from the Sketch posted by Afarhan on github https://github.com/afarhan/ubitxv6 , I got all of the errors listed in the earlier post.  I know very little about Arduino and was following the example posted by Afarhan on YouTube to update or restore when I hit that snag.  The posting by Gary Anderson about an earlier IDE version as well as the tips in this thread made me wonder about the boot loader.  There is an ATmega328P marked as an Old Bootloader in the list of processors in on 8.1.13 and I tried that and it worked.  I was able to compile and upload successfully.

I have no idea if that helps but thought I would pass it on.

David KG7ZMX
modestly confused


Gary Anderson
 

David,
Loris was trying to get the code compiled with a Mac for a different processor, not the Nano. I was too lazy to install the 8.1.13 IDE, but willing to give it a go on a PC with the IDE I had installed. (known library issues for the Encoder at some point in time w.r.t. the "Every" board)  Loris got an Error during compile.  You just got Warnings.  (Had you gotten an Error, the code would have not compiled) BTW, I had a lot of Warnings with 8.1.12 IDE. Jack gave an example of how to correct the code, for lack of better words, to the syntax the compiler wants to handle string constants.  Glad you were able to push through your problems, and will keep an eye out for Loris' questions.
Rgds,
Gary


K7UL@...
 

Hi Group,

Must be near a year ago, I also have tried this and invested some time chasing incompatibility with much of the code with the every board.  The display code that is in the sub directory (which went against farhans wishes to have all the code in one easy directory) was the limiting factor, as it was highly optimized for the nano, and lacks code to adjust itself by cpu or board definition.  Looking backwards toward the original source of the display code and the original project, and not finding out updates or further work on the code by the authors was no help.  
Replacing the display code and building up new code to incorporate into the bitx was the best option I found, and frankly I stopped there.
I think there was some early code before the troublesome display code was added.  

Your results may vary, 
K7UL


 

Hello Gary,
Like Dave, in IDE Version 1.8.13 on MacOs 10.14.6 I tried with the "ATmega328P Old Bootloader" configuration and I was able to compile without errors all the various versions of the µBITX Firmware on some old Chinese NANO modules that I had in the drawer, obviously making the variants indicated by Jack to avoid "warnings" on string management.
On a new NANO module purchased directly from the Arduino Store (original board) I got the same excellent results without the "Old Bootloader" problem.
For the use of the new NANO EVERY (with ATMEGA4809 microprocessor) I was unable to compile the Firmware in any way, the reason is purely Hardware: the new micro is not compatible with the ATMEGA328 if the old IDE Libraries are used at low level to manage Timers and I / O, because the 4809 is profoundly different from the 328 and its specific libraries have different names to identify the various components; this is unfortunately a known and much discussed problem in the Arduino.cc Forum.
It is a real shame, because the µBITX-V6 Firmware occupies practically all the memory available for the programs and it is not possible to make additions of any kind to try to manage an S-Meter and a SWR-Meter through the ADC (A7) again free.
I have only one last question left:
Why is the NANO module mounted upside down in the RADUINO ?
this creates two problems:
- 1st the module "Reset" button is not accessible,
- 2nd the original module sold by the Arduino Store already has the streep-line connectors mounted and this forces me to unsolder them, with the risk of damaging the micro.
If some HAM "young software engineer" would like to solve the Hardware problem of the NANO EVERY it would be really a wonderful thing ! it would allow many software variants and a lot of fun for the "old men" like me.
73 to all, IW4AJR Loris


Evan Hand
 

Loris,
You asked, "Why is the NANO module mounted upside down in the RADUINO ?"

I do not know for sure, however, based on what I have found on the history, the original Raduino was for the BITX40 or 20, and was soldered directly to the board.  The soldering was required to allow the display to plug into the connector on the same side of the board.  In order to allow for the socket, the Nano was moved to the other side of the Raduino board.  Rather than redoing the board layout, it was easier to just change the pins on the Nano.

Above is guesswork on my part.  Maybe someone has direct knowledge of the history of the Raduino (Ashhar Farhan?).
73
Evan
AC9TU