mirror of
https://github.com/aster94/logic-analyzer.git
synced 2026-05-01 15:10:43 +03:00
28 lines
458 B
C++
28 lines
458 B
C++
/*
|
|
* tester.ino
|
|
*
|
|
* Author : Vincenzo
|
|
* Test your logic analyzer with another arduino
|
|
*/
|
|
|
|
#define led A5
|
|
#define led2 13
|
|
|
|
void setup() {
|
|
pinMode(led, OUTPUT);
|
|
pinMode(led2, OUTPUT);
|
|
}
|
|
|
|
|
|
void loop() {
|
|
|
|
digitalWrite(led, HIGH);
|
|
delayMicroseconds(random(200));
|
|
digitalWrite(led2, HIGH);
|
|
delayMicroseconds(random(200));
|
|
digitalWrite(led2, LOW);
|
|
delayMicroseconds(random(200));
|
|
digitalWrite(led, LOW);
|
|
delayMicroseconds(random(200));
|
|
}
|