-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Change GPIO to use ESP-IDF API (C) #6120
Comments
@VojtechBartoska I think OneWire feature isn't working as it fails for ESP32C3 when building some DS18B20 temperature sensor. I guess it is GPIO related. |
@sylvioalves DS18B20 does work with the C3. Probably your used OneWire lib is not core 2.0.x ready. See changes made in Stickbreakers OneWire lib made here arendst/Tasmota@3cb48f1 |
@Jason2866 I understand. However, for common users, how would they know that or which OneWire lib to use? If you type OneWire to install a new library, there happens to be more than 5 libs and at least 2 of then does not work. So what would be the recommended way of having any OneWire library working? Well, I am not following the development as is, so my question is really as an end-user one. |
@sylvioalves That's in general a Arduino library problem. Many do not work reliable since the are designed to be used with many different MCU. Maybe espressif can recommend a library and supports to maintain? |
@sylvioalves The maintainer of Tasmota fixed the onewire lib. |
@Jason2866 thanks for the heads up! |
@VojtechBartoska @me-no-dev |
@SuGlider maybe a good idea :) need to refresh my memories on the protocol. Maybe we can use a peripheral, like RMT for that |
FWIW, there's this IDF-specific RMT-based onewire driver you could reference: https://github.com/DavidAntliff/esp32-owb/blob/master/owb_rmt.c |
@igrr this IDF-specific RMT-based onewire driver does not work with esp32-c3 though: |
I think it may not compile, but it could work with the right adjustment. C3 has a more limited version of the RMT peripheral. It certainly needs code adjusting. |
Would be great to have a adopted OneWire driver for release of v2.0.3. |
This issue tracks refactoring of GPIO to use ESP-IDF API.
No related issues have been found.
The text was updated successfully, but these errors were encountered: