![](/img/trans.png)
[英]im new to coding and tried to code a game but im stuck, i cant get pass this problem
[英]Im new with arduino and I made this function
首先 Arduino 使用 C++ 语言,错误的原因:“从 'char' 到 'const char*' 的转换无效”是Serial.readStringUntill()
返回一个字符串,但是你正在尝试用 aUn Serial 返回字符串。 myList=='A'
中的字符(包含在'
中的任何内容都被视为 C++ 中的字符),您可以通过访问 'myList' 中的第一个字符来修复错误,然后等同于如下所示
myList[0]=='A'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.