Arduino IDE compilation errors

Recent changes to the Arduino IDE mean that sketches that compiled satisfactorily with versions prior to 1.8.7 produce errors.

  1. Error message "… error: ‘showString’ was not declared in this scope"

    Solution

    showString( ) must be declared in the main sketch. At the end of the global declarations, and before the definition of setup( ), insert:

    static void showString (PGM_P s);

  2. Error message “… error: ‘TRUE’ was not declared in this scope” or
    "error: ‘FALSE’ was not declared in this scope"

    Solution

    The special Arduino keywords “TRUE”, “FALSE” and “boolean” are no longer allowed. Replace every instance of TRUE with true and every instance of FALSE with false. Also replace every instance of boolean with bool.
    e.g:
    bool USA=false;

    It is also perfectly OK to write:

    if (USA)
    {
           Vcal=Vcal_USA;
    }