Hi, I am new to arduino and i hope to learn, trying out this as a new hobby for myself, came across a code that is posted online and I had this warning when i tried to upload the code.
The warning code is warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
tmrpcm.play("welcome.wav");
The code i used..
void device_ready_to_work(void){
lcd.clear();
lcd.setCursor(2,0);
lcd.print("your pill is");
lcd.setCursor(2,1);
lcd.print("ready to work");
tmrpcm.play(*const char *)"ready.wav");
delay(2000);
}