1
为什么我的IF语句看不到全局变量?
我是Arduino编程的新手。我在编译以下代码时遇到问题: const int relay1 = 10; //Power Relay 1 const int relay2 = 11; //Power Relay 2 const int relay3 = 12; //Toggle Relay const int button1 = 3; const int button2 = 4; const int button3 = 5; //---Button States---\\ int button1State; //Current state of Button 1 int button2State; …