Thank you very much (:
I chose readpixel_kbv , graphictest_kbv and drawBitmap_kbv examples is worked good
But when I chose TouchScreen_Calibr_native But message error is
Arduino: 1.8.2 (Windows 7), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), Serial, 72Mhz (Normal), Smallest (default)"
Build options changed, rebuilding all
TouchScreen_Calibr_native:21: error: 'A1' was not declared in this scope
int XP = 6, YP = A1, XM = A2, YM = 7; //most common configuration
^
TouchScreen_Calibr_native:28: error: 'XM' was not declared in this scope
TouchScreen_kbv ts(XP, YP, XM, YM, 300); //re-initialised after diagnose
^
TouchScreen_Calibr_native:28: error: 'YM' was not declared in this scope
TouchScreen_kbv ts(XP, YP, XM, YM, 300); //re-initialised after diagnose
^
C:\Users\JSY\Documents\Arduino\libraries\MCUFRIEND_kbv\examples\TouchScreen_Calibr_native\TouchScreen_Calibr_native.ino: In function 'void readResistiveTouch()':
TouchScreen_Calibr_native:40: error: 'XM' was not declared in this scope
pinMode(XM, OUTPUT);
^
C:\Users\JSY\Documents\Arduino\libraries\MCUFRIEND_kbv\examples\TouchScreen_Calibr_native\TouchScreen_Calibr_native.ino: In function 'char* Aval(int)':
TouchScreen_Calibr_native:77: error: 'A0' was not declared in this scope
sprintf(buf[cnt], "A%d", pin - A0);
^
C:\Users\JSY\Documents\Arduino\libraries\MCUFRIEND_kbv\examples\TouchScreen_Calibr_native\TouchScreen_Calibr_native.ino: In function 'boolean diagnose_pins()':
TouchScreen_Calibr_native:98: error: 'A0' was not declared in this scope
for (i = A0; i < A5; i++) pinMode(i, INPUT_PULLUP);
^
TouchScreen_Calibr_native:98: error: 'A5' was not declared in this scope
for (i = A0; i < A5; i++) pinMode(i, INPUT_PULLUP);
^
TouchScreen_Calibr_native:100: error: 'A0' was not declared in this scope
for (i = A0; i < A4; i++) {
^
TouchScreen_Calibr_native:100: error: 'A4' was not declared in this scope
for (i = A0; i < A4; i++) {
^
TouchScreen_Calibr_native:127: error: 'XM' was not declared in this scope
XM = Apins[!idx]; XP = Dpins[!idx]; YP = Apins[idx]; YM = Dpins[idx];
^
TouchScreen_Calibr_native:127: error: 'YM' was not declared in this scope
XM = Apins[!idx]; XP = Dpins[!idx]; YP = Apins[idx]; YM = Dpins[idx];
^
C:\Users\JSY\Documents\Arduino\libraries\MCUFRIEND_kbv\examples\TouchScreen_Calibr_native\TouchScreen_Calibr_native.ino: In function 'void report()':
TouchScreen_Calibr_native:312: error: 'XM' was not declared in this scope
XP, XM - A0, YP - A0, YM, TS_WID, TS_HT, tft.readID());
^
TouchScreen_Calibr_native:312: error: 'A0' was not declared in this scope
XP, XM - A0, YP - A0, YM, TS_WID, TS_HT, tft.readID());
^
TouchScreen_Calibr_native:312: error: 'YM' was not declared in this scope
XP, XM - A0, YP - A0, YM, TS_WID, TS_HT, tft.readID());
^
exit status 1
'A1' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
How i can solve this ?