سلام یه برد آردینو Due خریدم ، برنامه ام روی آردوینو uno جواب داده ، نمیدونم برای due چی داره میگه که کامپایل نمیکنه؟!
سرچ کردم طبق آموزش ها از SAM boards رو اضافه کردم تست گرفتم برنامه چشمک زن هم کار میکنه... خطایی که میده اینه:
کد:
Arduino: 1.8.5 (Windows 10), Board: "Arduino Due (Programming Port)"
In file included from C:\Users\Rasool\Documents\Arduino\libraries\MCUFRIEND_kbv\examples\GLUE_Demo_320x240\GLUE_Demo_320x240.ino:25:0:
C:\Users\Rasool\Documents\Arduino\libraries\MCUFRIEND_kbv/UTFTGLUE.h: In member function 'void UTFTGLUE::print(String, int, int, int)':
C:\Users\Rasool\Documents\Arduino\libraries\MCUFRIEND_kbv/UTFTGLUE.h:102:27: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
settextcursor(st.c_str(), x, y); MCUFRIEND_kbv::print(st);}
^
C:\Users\Rasool\Documents\Arduino\libraries\MCUFRIEND_kbv/UTFTGLUE.h:155:10: error: initializing argument 1 of 'void UTFTGLUE::settextcursor(char*, int, int)' [-fpermissive]
void settextcursor(char *st, int x, int y) {
^
C:\Users\Rasool\Documents\Arduino\libraries\MCUFRIEND_kbv/UTFTGLUE.h: In member function 'void UTFTGLUE::printNumF(double, byte, int, int, char, int, char)':
C:\Users\Rasool\Documents\Arduino\libraries\MCUFRIEND_kbv/UTFTGLUE.h:123:47: error: 'dtostrf' was not declared in this scope
char buf[20]; dtostrf(num, length, dec, buf); settextcursor(buf, x, y); MCUFRIEND_kbv::print(buf);
^
exit status 1
Error compiling for board Arduino Due (Programming Port).
Invalid library found in C:\Users\Rasool\Documents\Arduino\libraries\LCD_ID_Reader: C:\Users\Rasool\Documents\Arduino\libraries\LCD_ID_Reader
Invalid library found in C:\Users\Rasool\Documents\Arduino\libraries\LCD_ID_Reader: C:\Users\Rasool\Documents\Arduino\libraries\LCD_ID_Reader
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
کسی میتونه بگه چیه مشکل؟؟!