/*
  Logic Analyzer Trigger Pin Demo

  Generates a PWM signals on pins 5, 6.

  The logic analyzer will start recording the signal only when pin 13 goes HIGH,
  after 1.5 seconds.

  View the recordings using PulseView:
  https://docs.wokwi.com/guides/logic-analyzer#viewing-the-data-in-pulseview

  Copyright (C) 2021, Uri Shaked
*/

void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(13, OUTPUT);

  analogWrite(5, 50);
  analogWrite(6, 220);

  delay(1500); // wait 1.5 second
  digitalWrite(13, HIGH); // pin 13 is connected to the trigger input (D7)
}

void loop() {
  // Nothing!
}
D0D1D2D3D4D5D6D7GNDLOGIC