Skip to content
Snippets Groups Projects
Commit 7842a65e authored by Friedrich Kretschmer's avatar Friedrich Kretschmer
Browse files

added missing variables

parent 78dcc045
Branches main
No related tags found
No related merge requests found
// Define the pin numbers
const int INPUT_TTL_PIN = 2; // Example pin number for input TTL
const int OUTPUT_TTL_PIN = 3; // Example pin number for output TTL
const int LED_PIN = 13; // Example pin number for LED
// Define other necessary variables
int ttlFactor = 1; // Default TTL factor
bool wasTTLDetected = false; // Flag to check if TTL was detected
bool wasTimeoutDetected = false; // Flag to check if timeout was detected
unsigned long lastTtlTime = 0; // Last time TTL was detected
unsigned long lastManualTtlTime = 0; // Last time manual TTL was triggered
unsigned long ttlTimeoutInterval = 0; // Timeout interval for TTL
int pulseWidth = 5; // Default pulse width
int outputInterval = 10; // Default output interval
int inputInterval = 40; // Default input interval
int previousTriggerLineState = LOW; // Previous state of the trigger line
int currentTriggerLineState = LOW; // Current state of the trigger line
void setup() { void setup() {
pinMode(INPUT_TTL_PIN, INPUT); pinMode(INPUT_TTL_PIN, INPUT);
pinMode(OUTPUT_TTL_PIN, OUTPUT); pinMode(OUTPUT_TTL_PIN, OUTPUT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment