Dump pin status on setup

This commit is contained in:
Unknown 2017-05-31 00:35:14 +02:00
parent 0e60fa484e
commit edb2a2de75

View File

@ -25,6 +25,7 @@ void setup() {
Serial.println("Initializing...");
configure_pins();
configure_bridge();
output_status();
Serial.println("Initialization done!");
}
@ -50,6 +51,16 @@ void configure_bridge() {
}
}
void output_status() {
Serial.print("Video DA: ");
Serial.println(digitalRead(VIDEO_DA));
Serial.print("Video D0-D6: 0x");
Serial.println(bridge.readPort(IO_VIDEO) & 127, HEX);
Serial.print("KBD RDY: ");
Serial.println(digitalRead(KBD_READY));
}
void serial_receive() {
if (Serial.available() > 0) {
pia_send( Serial.read() );