因此,如果我开始绘制此草图,则我的监视器将出现错误。 我只是想用Letter控制我的LED。还有其他方法吗?
char i;
void setup()
{
pinMode(5,OUTPUT);
Serial.begin(9600);
}
void loop ()
{
if(Serial.available())
{
i = Serial.read();
}
if (i=='A')
{
digitalWrite (5,HIGH);
}
else
{
digitalWrite (5,LOW);
}
}
错误:
⸮ʠ⸮"VcBnnDAA`)N⸮⸮(⸮
⸮ao⸮⸮Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400d4858: ffffffff ffffffff 00000000
Core 0 register dump:
PC : 0x400d485f PS : 0x00060330 A0 : 0x80088218 A1 : 0x3ffb7910
Backtrace: 0x400d485f:0x3ffb7910 0x40088215:0x3ffb7930
Rebooting...
@_⸮⸮,⸮
那么,这是什么意思呢? 为何不起作用?