Skip to content

tone generation with ledcSetup and ledcWrite instable under fw 2.0 (was fine with 1.0.6) #6199

Closed
@bongoo1

Description

@bongoo1

Board

esp32dev

Device Description

piezzo beeper connected to gpio33

Hardware Configuration

nothing relevant

Version

v2.0.0

IDE Name

platformIO

Operating System

win10

Flash frequency

default

PSRAM enabled

no

Upload speed

115200

Description

i generate short tones when pressing a key on the keyboard connected using the commands ledcSetup and ledcWrite to do pwm on the pin, connected to the piezzo beeper.
this works fine under arduino framework 1.0.6.
after switching to framework 2, tone generation got instable.
only about every second time, i hear a beep, although the code that should beep is executed every time.
when going back to 1.0.6, this works without any issues.

Sketch

ledcSetup(1,BEEP[beepRptr].freq,8);
        ledcWrite(1,128);

Debug Message

no error message, just no output signal (beep)

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions