mirror of
https://github.com/aster94/logic-analyzer.git
synced 2026-05-01 15:10:43 +03:00
Some things are ready
-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.
This commit is contained in:
27
Extras/tester/tester.ino
Normal file
27
Extras/tester/tester.ino
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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));
|
||||
}
|
||||
Reference in New Issue
Block a user