View Single Post
Old 02-13-2016, 01:30 PM   #843 (permalink)
crd4me
EcoModding Lurker
 
Join Date: Feb 2016
Location: Montreal
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
I've been using the OBDuino32k.pde file. When I load on the IDE plateforme I receive the following errors. I thought replacing prog_char by const char would do the work but it didn't. Any body can help ?
Code:
OBDuino.ino:597: error: 'prog_char' does not name a type
 prog_char PID_Desc[(1+LAST_PID)+(0xFF-FIRST_FAKE_PID)+1][9] PROGMEM=
OBDuino.ino:721: error: 'prog_char' does not name a type
 const prog_char obd_std_strings[17][9] PROGMEM =
OBDuino.ino:732: error: 'prog_uchar' does not name a type
 prog_uchar pid_reslen[] PROGMEM=
OBDuino.ino:757: error: 'prog_char' does not name a type
 prog_char pctd[] PROGMEM="- %d + "; // used in a couple of place
OBDuino.ino:758: error: 'prog_char' does not name a type
 prog_char pctdpctpct[] PROGMEM="- %d%% + "; // used in a couple of place
OBDuino.ino:759: error: 'prog_char' does not name a type
prog_char pctspcts[] PROGMEM="%s %s"; // used in a couple of place
OBDuino.ino:760: error: 'prog_char' does not name a type
 prog_char pctldpcts[] PROGMEM="%ld %s"; // used in a couple of place
OBDuino.ino:761: error: 'prog_char' does not name a type
 prog_char select_no[]  PROGMEM="(NO) YES "; // for config menu
OBDuino.ino:762: error: 'prog_char' does not name a type
prog_char select_yes[] PROGMEM=" NO (YES)"; // for config menu
OBDuino.ino:763: error: 'prog_char' does not name a type
prog_char gasPrice[][10] PROGMEM={"-  %s\354 + ", CurrencyAdjustString}; // dual string for fuel price
OBDuino.ino:764: error: 'prog_char' does not name a type
 prog_char noDTCcodes[] PROGMEM="No DTC codes"; // for MIL
OBDuino.ino:768: error: 'prog_char' does not name a type
 prog_char *topMenu[] PROGMEM = {"Configure menu", "Exit", "Display", "Adjust", "PIDs", "Clear DTC"};
OBDuino.ino:769: error: 'prog_char' does not name a type
 prog_char *displayMenu[] PROGMEM = {"Display menu", "Exit", "Contrast", "Metric", "Fuel/Hour", "Font"};
OBDuino.ino:770: error: 'prog_char' does not name a type
 prog_char *adjustMenu[] PROGMEM = {"Adjust menu", "Exit", "Tank Size", "Fuel Cost", "Fuel %", "Speed %", "Out Wait", "Trip Wait", "Tank Used", "Tank Dist", "Eng Disp", };
OBDuino.ino:771: error: 'prog_char' does not name a type
 prog_char *PIDMenu[] PROGMEM = {"PID Screen menu", "Exit", "Scr 1", "Scr 2", "Scr 3", "Big 1", "Big 2"};
OBDuino.ino:786: error: 'prog_char' does not name a type
 prog_char * tripNames[NBTRIP] PROGMEM =
OBDuino.ino:902: error: 'prog_char' does not name a type
 prog_char *econ_Visual[] PROGMEM=
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
                from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'boolean get_pid(byte, char*, long int*)':
OBDuino.ino:1733: error: 'pid_reslen' was not declared in this scope
  reslen=pgm_read_byte_near(pid_reslen+pid);
OBDuino.ino:1815: error: 'pctldpcts' was not declared in this scope
    sprintf_P(retbuf, pctldpcts, *ret, 
OBDuino.ino:2020: error: 'obd_std_strings' was not declared in this scope
       strcpy_P(retbuf, obd_std_strings[buf[0]-1]);
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'unsigned int get_icons(char*)':
OBDuino.ino:2299: error: 'pctspcts' was not declared in this scope
   sprintf_P(retbuf, pctspcts, decs, 
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'unsigned int get_cons(char*, byte)':
OBDuino.ino:2392: error: 'pctspcts' was not declared in this scope
   sprintf_P(retbuf, pctspcts, decs, 
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_fuel(char*, byte)':
OBDuino.ino:2432: error: 'pctspcts' was not declared in this scope
   sprintf_P(retbuf, pctspcts, decs, 
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_waste(char*, byte)':
OBDuino.ino:2470: error: 'pctspcts' was not declared in this scope
   sprintf_P(retbuf, pctspcts, decs, 
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_dist(char*, byte)':
OBDuino.ino:2508: error: 'pctspcts' was not declared in this scope
   sprintf_P(retbuf, pctspcts, decs, 
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_remain_dist(char*)':
OBDuino.ino:2556: error: 'pctldpcts' was not declared in this scope
   sprintf_P(retbuf, pctldpcts, remain_dist, 
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_max_vss(char*, byte)':
OBDuino.ino:2586: error: 'pctldpcts' was not declared in this scope
   sprintf_P(retbuf, pctldpcts, maxspeed, 
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
                from sketch\OBDuino.ino.ino.cpp:1:
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void display_mil_code_count(char*, long unsigned int*, byte*)':
OBDuino.ino:2986: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
   lcd_cls_print_P(PSTR("CHECK ENGINE ON"));
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string);  // clear screen and display string
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
                from sketch\OBDuino.ino.ino.cpp:1:
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void check_mil_code(bool)':
OBDuino.ino:3060: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
       lcd_cls_print_P(PSTR("Error reading DTC"));
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
 void lcd_cls_print_P(char *string);  // clear screen and display string
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
                 from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3127: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
     lcd_cls_print_P(PSTR("Clear DTC?"));
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
 void lcd_cls_print_P(char *string);  // clear screen and display string
OBDuino.ino:3139: error: 'noDTCcodes' was not declared in this scope
       lcd_cls_print_P(noDTCcodes);
 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void clear_mil_code()':
OBDuino.ino:3181: error: 'noDTCcodes' was not declared in this scope
     lcd_cls_print_P(noDTCcodes);
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3188: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

   lcd_cls_print_P(PSTR("Clearing codes..."));

                   ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3199: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

   lcd_cls_print_P(PSTR("Codes cleared"));

                   ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'byte menu_select_yes_no(byte)':

OBDuino.ino:3285: error: 'select_no' was not declared in this scope

       lcd_print_P(select_no);

                   ^

OBDuino.ino:3287: error: 'select_yes' was not declared in this scope

       lcd_print_P(select_yes);

                   ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void config_menu()':

OBDuino.ino:3423: error: 'topMenu' was not declared in this scope

     selection = menu_selection(topMenu, ARRAY_SIZE(topMenu));

                                ^

OBDuino.ino:3431: error: 'displayMenu' was not declared in this scope

         displaySelection = menu_selection(displayMenu, ARRAY_SIZE(displayMenu));

                                           ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3435: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("LCD contrast"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

OBDuino.ino:3446: error: 'pctd' was not declared in this scope

             sprintf_P(str, pctd, params.contrast);

                            ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3458: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Use metric unit"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3470: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_cls_print_P(PSTR("Use comma format"));

                             ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3486: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Fuel/hour speed"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

OBDuino.ino:3495: error: 'pctd' was not declared in this scope

             sprintf_P(str, pctd, params.per_hour_speed);

                            ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3510: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Font type"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

OBDuino.ino:3519: error: 'pctd' was not declared in this scope

             sprintf_P(str, pctd, params.BigFontType);

                            ^

OBDuino.ino:3536: error: 'adjustMenu' was not declared in this scope

       byte count = ARRAY_SIZE(adjustMenu);

                               ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino:773:31: note: in definition of macro 'ARRAY_SIZE'

 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))

                               ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3549: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Tank size ("));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3559: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("L)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3564: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("G)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3622: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Fuel Price ("));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3631: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("L)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3637: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("G)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

OBDuino.ino:3692: error: 'gasPrice' was not declared in this scope

             sprintf_P(str, gasPrice[fuelUnits > 999], decs);

                            ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3721: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Fuel adjust"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

OBDuino.ino:3731: error: 'pctdpctpct' was not declared in this scope

             sprintf_P(str, pctdpctpct, params.fuel_adjust);

                            ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3742: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Speed adjust"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

OBDuino.ino:3752: error: 'pctdpctpct' was not declared in this scope

             sprintf_P(str, pctdpctpct, params.speed_adjust);

                            ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3763: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Outing stop over"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3785: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Trip stop over"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3808: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Tank used ("));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3818: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("L)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3823: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("G)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3879: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Tank dist ("));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3890: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("KM)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3895: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

             lcd_print_P(PSTR("M)"));

                         ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:3951: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

           lcd_cls_print_P(PSTR("Eng dplcmt (MAP)"));

                           ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

OBDuino.ino:3986: error: 'PIDMenu' was not declared in this scope

         PIDSelection = menu_selection(PIDMenu, ARRAY_SIZE(PIDMenu));

                                       ^

OBDuino.ino:4012: error: 'PID_Desc' was not declared in this scope

               strcpy_P(strpid, PID_Desc[remap_pid(pid)]);

                                ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:4029: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

        lcd_cls_print_P(PSTR("Clear DTC?"));

                        ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:4039: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

     lcd_cls_print_P(PSTR("Saving config"));

                     ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:4041: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

     lcd_print_P(PSTR("Please wait..."));

                 ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void trip_reset(byte, boolean)':

OBDuino.ino:4063: error: 'tripNames' was not declared in this scope

   sprintf_P(str, PSTR("Zero %s data"), (char*)pgm_read_word(&(tripNames[ctrip])));

                                                               ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void test_buttons()':

OBDuino.ino:4193: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

     lcd_cls_print_P(PSTR(" LCD backlight"));

                     ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void display_PID_names()':

OBDuino.ino:4229: error: 'PID_Desc' was not declared in this scope

       lcd_print_P(PID_Desc[remap_pid(params.screen[active_screen].PID[count++])]);

                   ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void setup()':

OBDuino.ino:4314: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

   lcd_cls_print_P(PSTR("OBDuino32k  v198"));

                   ^

OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string);  // clear screen and display string

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:4320: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

       lcd_print_P(PSTR("ISO9141 Init"));

                   ^

OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string);  // to work with string in flash and PSTR()

      ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void lcd_char_init()':

OBDuino.ino:4821: error: 'prog_uchar' does not name a type

   static prog_uchar chars[] PROGMEM ={

          ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:4834: error: 'chars' was not declared in this scope

       lcd.write(pgm_read_byte(&chars[y*NB_CHAR+x])); //write the character data to the character generator ram

                                ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void lcd_char_bignum()':

OBDuino.ino:4846: error: 'prog_uchar' does not name a type

   static prog_uchar chars[BIGFontFontCount*BIGFontSymbolCount*8] PROGMEM = {

          ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:4880: error: 'chars' was not declared in this scope

       lcd.write(pgm_read_byte(&chars[params.BigFontType*BIGFontSymbolCount*8 + y*BIGFontSymbolCount + x])); //write the character data to the character generator ram

                                ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void bigNum(char*, char*)':

OBDuino.ino:4926: error: 'prog_char' does not name a type

   static prog_char bignumchars1[40*BIGFontFontCount] PROGMEM = { 

          ^

OBDuino.ino:4960: error: 'prog_char' does not name a type

   static prog_char bignumchars2[40*BIGFontFontCount] PROGMEM = { 

          ^

OBDuino.ino:5011: error: 'bignumchars1' was not declared in this scope

         lcd_print_P(line==0?&bignumchars1[address]:&bignumchars2[address]);

                              ^

OBDuino.ino:5011: error: 'bignumchars2' was not declared in this scope

         lcd_print_P(line==0?&bignumchars1[address]:&bignumchars2[address]);

                                                     ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void eco_visual(char*)':

OBDuino.ino:5148: error: 'econ_Visual' was not declared in this scope

   sprintf_P(retbuf, PSTR("%s"), (char*)pgm_read_word(&(econ_Visual[stars])));

                                                        ^

 Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void save_params_and_display()':

OBDuino.ino:5213: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

   lcd_cls_print_P(PSTR("TRIPS SAVED!"));

                   ^

OBDuino.ino:4803: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]

 void lcd_cls_print_P(char *string)

      ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from sketch\OBDuino.ino.ino.cpp:1:

OBDuino.ino:5218: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

   lcd_print_P(PSTR("Wasted:"));

               ^

OBDuino.ino:4796: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]

 void lcd_print_P(char *string)

      ^

exit status 1
'prog_char' does not name a type
  Reply With Quote