mandulaj / PZEM-004T-v30

Arduino library for the Updated PZEM-004T v3.0 Power and Energy meter
MIT License
256 stars 108 forks source link

Issue with Teensy 4.1, using any of the hardware serials (Serial1...Serial8) #112

Open WildSwan opened 11 months ago

WildSwan commented 11 months ago

Describe the bug It won't go past PZEM004Tv30 pzem1(Serial1, 1); The Teensy 4.1 just hangs. Audible sound can be heard, it's like plugging/unplugging a USB device on your PC.

To Reproduce

  1. Let's use the Blink sample sketch.
  2. include PZEM v3.0

    include

    PZEM004Tv30 pzem1(Serial1, 1);

  3. Upload the sketch.

Expected behavior The built-in LED will not blink as expected. Instead, audible sound can be heard and it is like plugging/unplugging a USB device.

Screenshots N/A

Desktop (please complete the following information):

Additional context This problem is not occurring in Teensy 3.6 and Arduino Mega.