This commit is contained in:
Christian Werner 2025-09-28 13:25:25 +02:00
parent 9a5d6523be
commit 6cd0db3a12

View File

@ -12,8 +12,8 @@
#define WRITE 2
char count = 0;
char delayAmount = 100;
char textToSent[] = "Test!";
unsigned short delayAmount = 100;
char textToSent[] = "The Commodore 64, also known as the C64, is an 8-bit home computer introduced in January 1982 by Commodore International. It has been listed in the Guinness World Records as the best-selling desktop computer model of all time, with independent estimates placing the number sold between 12.5 and 17 million units.";
char mode;
@ -89,14 +89,20 @@ void send4Bit(char c) {
digitalWrite(i+2, d);
}
Serial.print(" ");
delay(delayAmount);
digitalWrite(AR, HIGH);
while (digitalRead(CR) == LOW) {}
// while (digitalRead(CR) == LOW) {}
// while (digitalRead(CR) == HIGH) {}
delay(delayAmount);
while (digitalRead(CR) == HIGH) {}
digitalWrite(AR, LOW);
//delay(500);
delay(delayAmount);
}
void sendByte(char a, char byte) {
@ -151,6 +157,6 @@ void loop() {
Serial.print("\nAAAAAAAA\n");
delay(20000);
delay(1000);
}