How to pull EN pin low with Teensy 4.1

Hello, due to frequent firmware crashes on the BW16 I want to trigger a reset of the device via an external device, ie Teensy 4.1. Can I use one of the GPIO pins on the Teensy 4.1 to connect to the EN pin on BW16 and programatically send a signal to pull the voltage low on the EN pin, then pull up to reset?

How do i do this?

Hi @microPC ,

Yes, you may connect the GPIO pin of an external device to EN pin of BW16 to trigger a reset.
Here’s an example code uploaded to the external device to trigger a reset on BW16 every 5 seconds:

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  pinMode(PB23, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:

  digitalWrite(PB23, LOW);
  Serial.println("LOW");
  delay(2000);
  digitalWrite(PB23, HIGH);
  Serial.println("HIGH");
  delay(5000);
}

Thanks.