mirror of
https://github.com/tebl/RC6502-Apple-1-Replica.git
synced 2024-12-21 21:29:19 +00:00
Dump pin status on setup
This commit is contained in:
parent
0e60fa484e
commit
edb2a2de75
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user