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

raw esp8266-12e - how to point Waveform to the analog pin #1015

Closed
mrbar42 opened this issue Jan 7, 2017 · 2 comments
Closed

raw esp8266-12e - how to point Waveform to the analog pin #1015

mrbar42 opened this issue Jan 7, 2017 · 2 comments

Comments

@mrbar42
Copy link
Contributor

mrbar42 commented Jan 7, 2017

Hi,

I use esp8266-12e boards directly with espruino v1.89 (no devboard).
As i read in many other issues and forum discussions,
analogRead() ignores the pin and uses the only available one - that's working as expected.
But does Waveform acts the same?
I couldn't get any data defining any pin number to Waveform.

In a more general fashion i wonder if it would be helpful to add the pins to the ESP8266 module similar to NodeMCU making usage more clear and explicit:

var esp8266 = require('ESP8266');
esp8266.A0
esp8266.D0
@gfwilliams
Copy link
Member

I'm afraid waveform isn't really supported on ESP8266 at the moment.

As far as I know, ESP8266 Waveform doesn't properly use interrupts anyway (so it gets stalled by JS execution). As a result, even if this could be made to work, you'd still be a very glitchy and unreliable waveform read out of it.

@mrbar42
Copy link
Contributor Author

mrbar42 commented Jan 25, 2017

Then there's no issue here I guess.

Thanks.

@mrbar42 mrbar42 closed this as completed Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants