-
Notifications
You must be signed in to change notification settings - Fork 109
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
gpio:set_int(Gpio, Pin, none) -> error #1386
Comments
This looks like a bug, I will try to look into this over the weekend. You already found the workaround. Thanks for reporting this! |
I looked at our handling of gpio interrupts and we do not have a special case necessary to make |
Add full implimentation of the documented "none" interrupt trigger. This trigger has been documented since release-0.5, but was never fully implimented, and its use results in an error, see issue atomvm#1386. Closes atomvm#1386 Signed-off-by: Winford <winford@object.stream>
Add full implimentation of the documented "none" interrupt trigger. This trigger has been documented since release-0.5, but was never fully implimented, and its use results in an error, see issue atomvm#1386. Closes atomvm#1386 Signed-off-by: Winford <winford@object.stream>
Fixes the implementation of the `none` trigger by moving the main functionality from `gpiodriver_remove_int` into a new `unregister_interrupt_listener` funtion that is also used when setting the interrupt trigger to `none` to remove an interrupt. Closes atomvm#1386 Signed-off-by: Winford <winford@object.stream>
Fixes the implementation of the `none` trigger that has been documented since release-0.5, but was apparently never tested, its use causes a error (see atomvm#1386) Moves the main functionality from `gpiodriver_remove_int` into a new `unregister_interrupt_listener` funtion that is also used when setting the interrupt trigger to `none` to remove an interrupt. Closes atomvm#1386 Signed-off-by: Winford <winford@object.stream>
Fixes the implementation of the `none` trigger that has been documented since release-0.5, but was apparently never tested, its use causes a error (see atomvm#1386). Moves the main functionality from `gpiodriver_remove_int` into a new `unregister_interrupt_listener` funtion that is also used when setting the interrupt trigger to `none` to remove an interrupt. Closes atomvm#1386 Signed-off-by: Winford <winford@object.stream>
I thought about this a bit more, and after thinking of all the situations where using the |
Fix broken ESP32 gpio interrupt trigger `none` Fixes the implementation of the `none` trigger that has been documented since release-0.5, but was apparently never tested, its use causes a error (see #1386). Moves the main functionality from `gpiodriver_remove_int` into a new `unregister_interrupt_listener` funtion that is also used when setting the interrupt trigger to `none` to remove an interrupt. Closes #1386 These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
Somebody struggled and posted this in the Discord. Reading the docs, it seems this code should work
https://www.atomvm.net/doc/main/apidocs/erlang/eavmlib/gpio.html#set-int-3
Problem solved by using:
But there may be a (doc?)/code issue.
The text was updated successfully, but these errors were encountered: