2014-git-work/Arduino/DigitalReadSerial_x8/DigitalReadSerial_x8.ino
2012-08-28 22:39:10 +09:00

30 lines
672 B
C++

void setup() {
pinMode(12, INPUT);
pinMode(13, INPUT);
pinMode(14, INPUT);
pinMode(15, INPUT);
pinMode(16, INPUT);
pinMode(17, INPUT);
pinMode(18, INPUT);
pinMode(19, INPUT);
Serial.begin(9600);
}
void loop() {
Serial.print(digitalRead(12));
Serial.print('\t');
Serial.print(digitalRead(13));
Serial.print('\t');
Serial.print(digitalRead(14));
Serial.print('\t');
Serial.print(digitalRead(15));
Serial.print('\t');
Serial.print(digitalRead(16));
Serial.print('\t');
Serial.print(digitalRead(17));
Serial.print('\t');
Serial.print(digitalRead(18));
Serial.print('\t');
Serial.print(digitalRead(19));
Serial.print('\n');
}