Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32: DAC does not seem to work #1574

rovale opened this issue Nov 29, 2018 · 1 comment


None yet
3 participants
Copy link

commented Nov 29, 2018

It seems DAC does not work on the espruino_2v00_esp32.

Goal: dim an LED using the analogWrite(D26, 0.5) command.

Expected behaviour: LED dims to about 50%.

Actual behaviour: LED dims to about 0%. No light.

Tag: ESP32


@gfwilliams gfwilliams added the ESP32 label Nov 30, 2018


This comment has been minimized.

Copy link

commented Apr 22, 2019

That’s not how LEDs work. You’re assuming they’re linear devices, but they’re not. There’s no reason not to stick to PWM in this case. The DAC probably is unable to supply enough current to light the LED properly at above, say, 25% of its typical current.

I suggest closing this as it’s definitely not a bug in Espruino.

@rovale rovale closed this Apr 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.