Skip to content

Commit

Permalink
TeensuPulseGenerator - firmware: Reduce time difference between
Browse files Browse the repository at this point in the history
first and consecutiev pulses by 1 microsecond.
  • Loading branch information
nicost committed Dec 26, 2024
1 parent 34110ab commit 201f106
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

static const uint32_t version = 1;

uint8_t outputPin = 8; // LED_BUILTIN;
uint8_t outputPin = LED_BUILTIN; // LED_BUILTIN;
uint8_t inputPin = 2;

/**
Expand Down Expand Up @@ -232,8 +232,8 @@ public:

// Start interval timer to manage pulse cycles
// start first pulse here, otherwise we would wait pulseInterval for the first pulse
pulse();
intervalTimer.begin(intervalISR, pulseInterval);
pulse();

// Simplified start confirmation
Serial.write(1);
Expand Down

0 comments on commit 201f106

Please sign in to comment.