{"action":"created","issue":{"url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266/issues/2","repository_url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266","labels_url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266/issues/2/comments","events_url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266/issues/2/events","html_url":"https://github.com/gnulabis/UTFT-ESP8266/issues/2","id":135852339,"number":2,"title":"Problem with Arduino IDE 1.6.5","user":{"login":"lukbe","id":12702217,"avatar_url":"https://avatars.githubusercontent.com/u/12702217?v=3","gravatar_id":"","url":"https://api.github.com/users/lukbe","html_url":"https://github.com/lukbe","followers_url":"https://api.github.com/users/lukbe/followers","following_url":"https://api.github.com/users/lukbe/following{/other_user}","gists_url":"https://api.github.com/users/lukbe/gists{/gist_id}","starred_url":"https://api.github.com/users/lukbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukbe/subscriptions","organizations_url":"https://api.github.com/users/lukbe/orgs","repos_url":"https://api.github.com/users/lukbe/repos","events_url":"https://api.github.com/users/lukbe/events{/privacy}","received_events_url":"https://api.github.com/users/lukbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gnulabis","id":70113,"avatar_url":"https://avatars.githubusercontent.com/u/70113?v=3","gravatar_id":"","url":"https://api.github.com/users/gnulabis","html_url":"https://github.com/gnulabis","followers_url":"https://api.github.com/users/gnulabis/followers","following_url":"https://api.github.com/users/gnulabis/following{/other_user}","gists_url":"https://api.github.com/users/gnulabis/gists{/gist_id}","starred_url":"https://api.github.com/users/gnulabis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnulabis/subscriptions","organizations_url":"https://api.github.com/users/gnulabis/orgs","repos_url":"https://api.github.com/users/gnulabis/repos","events_url":"https://api.github.com/users/gnulabis/events{/privacy}","received_events_url":"https://api.github.com/users/gnulabis/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-23T20:16:36Z","updated_at":"2016-03-02T18:41:31Z","closed_at":null,"body":"Hello, i have problem with arduino IDE 1.6.5 and esp8266 platform package for Arduino version 2.0.0.\r\nIf i compile project i receive this error message:\r\n\r\n```\r\nArduino: 1.6.5 (Windows 8.1), Vývojová deska: \"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)\"\r\n\r\nUTFT_Demo_320x240_Serial_SW.ino: In function 'void loop()':\r\nUTFT_Demo_320x240_Serial_SW.ino:53:73: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:56:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:75:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:83:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:91:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:313:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:314:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:315:50: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nUTFT_Demo_320x240_Serial_SW.ino:319:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\nIn file included from C:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\UTFT.cpp:88:0:\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\hardware/esp8266/HW_ESP8266.h:1:17: fatal error: SPI.h: No such file or directory\r\n #include <SPI.h>\r\n                 ^\r\ncompilation terminated.\r\n```\r\n\r\n\r\nIf i use arduino IDE version 1.6.7 i not receive :\r\n\r\n```\r\n+1: In file included from C:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\UTFT.cpp:88:0:\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\hardware/esp8266/HW_ESP8266.h:1:17: fatal error: SPI.h: No such file or directory\r\n #include <SPI.h>\r\n                 ^\r\ncompilation terminated.\r\n```\r\n\r\n\r\nI receive only this warning:\r\n\r\n```\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino: In function 'void loop()':\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:53:73: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"* Universal Color TFT Display Library *\", CENTER, 1 );\r\n\r\n                                                                         ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:56:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"<http://www.RinkyDinkElectronics.com/>\", CENTER, 227 );\r\n\r\n                                                                          ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:75:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"Sin\", 5, 15 );\r\n\r\n                                 ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:83:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"Cos\", 5, 27 );\r\n\r\n                                 ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:91:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"Tan\", 5, 39 );\r\n\r\n                                 ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:313:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"That's it!\", CENTER, 93 );\r\n\r\n                                             ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:314:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"Restarting in a\", CENTER, 119 );\r\n\r\n                                                   ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:315:50: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"few seconds...\", CENTER, 132 );\r\n\r\n                                                  ^\r\n\r\nC:\\Users\\lukbe\\OneDrive\\Dokumenty\\Arduino\\libraries\\UTFT\\examples\\ESP8266\\UTFT_Demo_320x240_Serial_SW\\UTFT_Demo_320x240_Serial_SW.ino:319:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\r\n\r\n     myGLCD.print ( \"Runtime: (msecs)\", CENTER, 210 );\r\n\r\n                                                    ^\r\n```\r\n\r\n\r\nWHY ?"},"comment":{"url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266/issues/comments/191366380","html_url":"https://github.com/gnulabis/UTFT-ESP8266/issues/2#issuecomment-191366380","issue_url":"https://api.github.com/repos/gnulabis/UTFT-ESP8266/issues/2","id":191366380,"user":{"login":"gnulabis","id":70113,"avatar_url":"https://avatars.githubusercontent.com/u/70113?v=3","gravatar_id":"","url":"https://api.github.com/users/gnulabis","html_url":"https://github.com/gnulabis","followers_url":"https://api.github.com/users/gnulabis/followers","following_url":"https://api.github.com/users/gnulabis/following{/other_user}","gists_url":"https://api.github.com/users/gnulabis/gists{/gist_id}","starred_url":"https://api.github.com/users/gnulabis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnulabis/subscriptions","organizations_url":"https://api.github.com/users/gnulabis/orgs","repos_url":"https://api.github.com/users/gnulabis/repos","events_url":"https://api.github.com/users/gnulabis/events{/privacy}","received_events_url":"https://api.github.com/users/gnulabis/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T18:41:31Z","updated_at":"2016-03-02T18:41:31Z","body":"So, there are two things reported in your issue. I'll address them separately.\r\n\r\n### Issue 1: String conversion warnings\r\nTo get rid of the warnings, you just need to convert all the constant char pointers to String. I've updated all UTFT examples to do so. Check out the updated examples in commit 60c840088062759b41e07c35192651d4b6b81eb7\r\n\r\n### Issue 2: missing SPI.h in Arduino IDE 1.6.5\r\nYou are absolutely right, I had seen this behaviour as well and then I forgot about it when I switched to 1.6.6.\r\n\r\nThis is a quirk of the Arduino IDE itself with respect to 3rd party cores (such as the ESP8266). It has been \"fixed\" in version 1.6.6 and later of the IDE. You can read more about it at arduino/Arduino#2573.\r\n\r\nFor Arduino IDE 1.6.5, the workaround is to also include SPI.h in your own sketch.\r\n\r\nI've updated all UTFT examples to do so. Check out the updated examples in commit d638c604a490063d6adbedf06324c0b3b361ce36\r\n\r\nI've tested this with 1.6.5, 1.6.6 and 1.6.7, it seems to be ok now."}}