Arduino ide でraspberry pi picoに書き込みをしているんですが、エラーの解決方法が分からず教えていただけるとありがたいです。 以下がコードです ライブラリやディスプレイのサイズ設定は省いています byte s1r = HIGH; byte s2r = HIGH; byte mode = 0; char str[16]; char *pn[]={ "purogyramu1", "puroguramu2", }; void dsp(int, int, char*, int=0,int=1); // void setup() { pinMode(SW1, INPUT_PULLUP); pinMode(SW2, INPUT_PULLUP); Serial.begin(115200); initDsp(); dsp(0, 0, pn[mode], 1); // } void loop() { byte sn; sn = digitalRead(SW1); //選択ボタンのチェック if (sn == LOW && s1r == HIGH) { mode = (mode + 1) % 2; dsp(0, 0, pn[mode], 1);変更 } s1r = sn; if (getSW2()) { //実行(停止)ボタンのチェック switch (mode) { case 0: opeA(); break; //処理Aを実行 case 1: opeB(); break; //処理Bを実行 } delay(20); } void dsp(int x, int y, char *s, int cls = 0,int p=1) { if (cls)display.clearDisplay(); display.setCursor(x, y); display.print(s); if(p)display.display(); } void initDsp() { //Setup SSD1306 if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { Serial.println(F("SSD1306 can not allocate memory!")); return; } //Clear display. display.clearDisplay(); display.setTextSize(2); display.setTextColor(WHITE); display.setCursor(0, 0); dsp(0,0,pn[mode],1,1); //●変更 delay(1000); } //実行ボタンが押されたか byte getSW2() { byte sn, f = 0; sn = digitalRead(SW2); if (sn == LOW && s2r == HIGH)f = 1; s2r = sn; delay(20); return f; } //処理A void opeA() { //puroguramu1 } //処理B void opeB() { //puroguramu2 int a = 0; dsp(0, 16, "start", 0); unsigned long tm = millis(); while (1) { if (millis() - tm > 10) { dsp(0, 0, "puroguramu2", 1,0); dsp(0, 16, "start", 0,0); sprintf(str, "%4d", a); dsp(80, 16, str, 0,1); a++; tm = millis(); } if (getSW2())break; //実行(停止)ボタンのチェック } dsp(0, 0, "puroguramu2", 1); } エラー内容は ISO C++は文字列定数を'char*'に変換することを禁じています