(05-03-2016, 01:26 AM)Eroslg escribió: Hola Señor Antonio castro soy lector de su libro CAD01 y me remito a usted para ver si podria ayudarme con un error que me esta mostrando el programa de dimmer1C sin ninguna modificación, uso el SDK 1.6.7 y me muestra esto a la hora de compilar
Arduino:1.6.7 (Windows 10), Placa:"Arduino/Genuino Uno"
sketch\CaoDim1C_Lcd20x4.cpp: In member function 'void CaoDim1C_Lcd20x4:rintLnSerBeep(const __FlashStringHelper*, boolean, boolean)':
CaoDim1C_Lcd20x4.cpp:130: error: 'prog_char' does not name a type
const prog_char *p= (const prog_char *)Linea;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\CaoDim1C_Lcd20x4.h:11,
from sketch\CaoDim1C_Lcd20x4.cpp:11:
CaoDim1C_Lcd20x4.cpp:135: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
sketch\CaoDim1C_Lcd20x4.cpp: In member function 'char* CaoDim1C_Lcd20x4::Fmt(const __FlashStringHelper*, ...)':
CaoDim1C_Lcd20x4.cpp:174: error: 'prog_char' does not name a type
const prog_char *p= (const prog_char *)fmt;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\CaoDim1C_Lcd20x4.h:11,
from sketch\CaoDim1C_Lcd20x4.cpp:11:
CaoDim1C_Lcd20x4.cpp:178: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
exit status 1
'prog_char' does not name a type
De hecho tengo el mismo error, me avisas si llegas a solucionarlos para que me compartas tu experiencia!
Arduino:1.6.4 (Windows 7), Placa:"Arduino Uno"
Opciones de compilación cambiadas, reconstruyendo todo
CaoDim1C_Lcd20x4.cpp: In member function 'void CaoDim1C_Lcd20x4:rintLnSerBeep(const __FlashStringHelper*, boolean, boolean)':
CaoDim1C_Lcd20x4.cpp:130: error: 'prog_char' does not name a type
const prog_char *p= (const prog_char *)Linea;
^
In file included from C:\Users\SACRAM~1\AppData\Local\Temp\Rar$EXa0.399\arduino-1.6.4\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from CaoDim1C_Lcd20x4.h:11,
from CaoDim1C_Lcd20x4.cpp:11:
CaoDim1C_Lcd20x4.cpp:135: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
CaoDim1C_Lcd20x4.cpp: In member function 'char* CaoDim1C_Lcd20x4::Fmt(const __FlashStringHelper*, ...)':
CaoDim1C_Lcd20x4.cpp:174: error: 'prog_char' does not name a type
const prog_char *p= (const prog_char *)fmt;
^
In file included from C:\Users\SACRAM~1\AppData\Local\Temp\Rar$EXa0.399\arduino-1.6.4\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from CaoDim1C_Lcd20x4.h:11,
from CaoDim1C_Lcd20x4.cpp:11:
CaoDim1C_Lcd20x4.cpp:178: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
'prog_char' does not name a type
This report would have more information with
"Show verbose output during compilation"
activala desde Archivo > Preferencias
(05-03-2016, 01:26 AM)Eroslg escribió: Hola Señor Antonio castro soy lector de su libro CAD01 y me remito a usted para ver si podria ayudarme con un error que me esta mostrando el programa de dimmer1C sin ninguna modificación, uso el SDK 1.6.7 y me muestra esto a la hora de compilar
Arduino:1.6.7 (Windows 10), Placa:"Arduino/Genuino Uno"
sketch\CaoDim1C_Lcd20x4.cpp: In member function 'void CaoDim1C_Lcd20x4:rintLnSerBeep(const __FlashStringHelper*, boolean, boolean)':
CaoDim1C_Lcd20x4.cpp:130: error: 'prog_char' does not name a type
const prog_char *p= (const prog_char *)Linea;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\CaoDim1C_Lcd20x4.h:11,
from sketch\CaoDim1C_Lcd20x4.cpp:11:
CaoDim1C_Lcd20x4.cpp:135: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
sketch\CaoDim1C_Lcd20x4.cpp: In member function 'char* CaoDim1C_Lcd20x4::Fmt(const __FlashStringHelper*, ...)':
CaoDim1C_Lcd20x4.cpp:174: error: 'prog_char' does not name a type
const prog_char *p= (const prog_char *)fmt;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\CaoDim1C_Lcd20x4.h:11,
from sketch\CaoDim1C_Lcd20x4.cpp:11:
CaoDim1C_Lcd20x4.cpp:178: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);
^
exit status 1
'prog_char' does not name a type
Intenta usar la versión 1.0.5 de Arduino, yo lo calaré y te aviso si logré o no solucionarlo.