Arduinoにおける文法は標準C言語と特に変わりはありません。
●Example from Arduino Web Site
[c]
if (digitalRead(2) == HIGH && digitalRead(3) == HIGH) { // read two switches
// …
}
if (x > 0 || y > 0) {
// …
}
if (!x) {
// …
}
[/c]
Arduinoにおける文法は標準C言語と特に変わりはありません。
●Example from Arduino Web Site
[c]
if (digitalRead(2) == HIGH && digitalRead(3) == HIGH) { // read two switches
// …
}
if (x > 0 || y > 0) {
// …
}
if (!x) {
// …
}
[/c]