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 D21.toggle(), D21.digitalPulse(rst,0,10) not working #1103
Comments
Also need to check This fails. |
Works fine on my board with:
|
set & reset works for me too. Seems to be issue with:
I see a quick flash. I believe it's meant to leave the LED lit. |
Just tested toggle one more time directly after reset without doing any command.
|
I get different output! Then won't toggle off. For the pulse: https://github.com/espruino/Espruino/blob/master/targets/esp32/jshardware.c#L396 https://github.com/espruino/Espruino/blob/master/targets/esp32/jshardwarePulse.c#L92
Could be a factor of 1000 out - comments don't match up. |
Correct, comments don't match. But thats not the problem. Oh, sorry, misunderstanding of duration. I have to check the us / ms now. |
Tested with digitalPulse(D21,0,[4,5,6,7,8]); --> works fine |
RMT timer has a base frequency of 80Mhz. |
Found the reason, why D21.reset() did not work. |
Can we set the config for RMT only to occur when digitalPulse is used? I wonder of this is also making Onewire inconsistent? |
The only way, I know, is to config rmt before pulse and to reset to GPIO after the pulse. |
That might the cleanest way |
Is done in ESP32 branch. |
Great
发自我的 iPhone
… 在 2017年3月7日,下午8:37,jumjum123 ***@***.***> 写道:
Is done in ESP32 branch.
Had to reset to rmt in jshardwarePulse too.
Hopefully, this did not create conflicts somewhere else (SPI or I2C for example).
Same problem could appear, if you PIN.set() for an already for SPI assigned pin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is this all sorted now - can we close, or does it need a pull request to bring into master? |
Can we close this now? |
Works as expected, |
See http://forum.espruino.com/comments/13506090/ raised by @user73896
Connect lead between GND and D21
D21.set();
lights up -D21.reset();
CORRECTION does reset.digitalPulse possible related, @jumjum123 not sure if the timer code for this has been done?
The text was updated successfully, but these errors were encountered: