From fdb5964111bef25cd93c4c2d091d2f2730ad7d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Fri, 9 May 2025 20:22:17 +0200 Subject: [PATCH] feat: add clock output --- 6502_project.ino | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 6502_project.ino diff --git a/6502_project.ino b/6502_project.ino new file mode 100644 index 0000000..cfab76c --- /dev/null +++ b/6502_project.ino @@ -0,0 +1,20 @@ +#define CLOCK_PIN 13 +#define OUTPUT_PINS 1 +#define CLOCK_MS 150 + +void setup() { + Serial.begin(9600); + + // OUTPUT + pinMode(CLOCK_PIN, OUTPUT); +} + +void loop() { + // CLOCK HIGH + digitalWrite(CLOCK_PIN, HIGH); + delay(CLOCK_MS); + + // CLOCK LOW + digitalWrite(CLOCK_PIN, LOW); + delay(CLOCK_MS); +} \ No newline at end of file