ArduinoGeneral

conversion from 'int' to 'String' is ambiguous

userHead dvschafer 2017-12-15 16:35:31 6096 Views4 Replies
I get a compiling error on the wireless joystick demo code "conversion from 'int' to 'String' is ambiguous" on line

String Buttons[17] = { "J2", "J1", NULL, "S2", "S1", "UP", "LEFT", "DOWN", "RIGHT", "1", "4", "2", "3", "RZ1", "RZ2", "LZ1", "LZ2"};

Whats going on?
2017-12-15 19:19:24 I found the issue, in the WirelessJoystickSample2.zip example code provided for download, the NULL causes the error, replace NULL with "" and it will compile.
String Buttons[17] = { "J2", "J1", NULL, "S2", "S1", "UP", "LEFT", "DOWN", "RIGHT", "1", "4", "2", "3", "RZ1", "RZ2", "LZ1", "LZ2"};
userHeadPic dvschafer
2017-12-15 18:16:17 I just use IDE 1.6.9,it works well userHeadPic robert.chen
2017-12-15 17:46:28 I thought the Arduino IDE (1.8.5) would work fine? What IDE do you recommend? userHeadPic dvschafer
2017-12-15 17:27:10 The example code runs well here, have you use different IDE to have a test again? userHeadPic robert.chen