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

Closed
rovale opened this issue Nov 29, 2018 · 1 comment
Closed

ESP32: DAC does not seem to work #1574

rovale opened this issue Nov 29, 2018 · 1 comment
Labels
ESP32 This is only a problem on ESP32-based devices

Comments

@rovale
Copy link

rovale 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

Discussion: http://forum.espruino.com/conversations/328147/

@gfwilliams gfwilliams added the ESP32 This is only a problem on ESP32-based devices label Nov 30, 2018
@dgazzoni
Copy link
Contributor

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 as completed Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ESP32 This is only a problem on ESP32-based devices
Projects
None yet
Development

No branches or pull requests

3 participants