mirror of
https://github.com/guezoloic/6502_project.git
synced 2026-01-25 09:34:06 +00:00
feat: add clock output
This commit is contained in:
20
6502_project.ino
Normal file
20
6502_project.ino
Normal file
@@ -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);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user