mirror of
https://github.com/aster94/logic-analyzer.git
synced 2026-05-01 15:10:43 +03:00
-Fixed Scroll reducer. -Some functions were broken down into simpler functions, to facilitate the reading of the code. -The spanish comments were changed to english -Some variables like cursera or curseraf now they have names that give meaning to what they are.
28 lines
462 B
C++
28 lines
462 B
C++
/*
|
|
* tester.ino
|
|
*
|
|
* Author : Vincenzo
|
|
* Test your logic analyzer with another arduino
|
|
*/
|
|
|
|
#define pin1 A5
|
|
#define pin2 13
|
|
|
|
void setup() {
|
|
pinMode(pin1, OUTPUT);
|
|
pinMode(pin2, OUTPUT);
|
|
}
|
|
|
|
|
|
void loop() {
|
|
|
|
digitalWrite(pin1, HIGH);
|
|
delayMicroseconds(random(200));
|
|
digitalWrite(pin2, HIGH);
|
|
delayMicroseconds(random(200));
|
|
digitalWrite(pin2, LOW);
|
|
delayMicroseconds(random(200));
|
|
digitalWrite(pin1, LOW);
|
|
delayMicroseconds(random(200));
|
|
}
|