You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested some GPIO outputs with relay type and inverted mode: on boot they start in low level (ON) and, when I toggle them, the function gpio_set_output_value() always writes 0 to the pin for both states ON and OFF.
I have a WT32-SC01 Plus with openHASP 0.7.0-rc2 flashed.
To Reproduce
1- Set up a GPIO output with relay type and inverted mode, restart the plate.
2- Measure the pin voltage level or call the command output## with no payload (## is the pin number)
3- Toggle it and measure the pin voltage or insert in the function gpio_set_output_value() an instruction that logs the value written on the digital output
Expected behavior
High level (OFF) (EDIT: or last state) on the pin on boot.
Low level on the pin when the output is turned ON and high level when it is turned OFF.
Screenshots or video
Here's a screenshot of the serial console (IP and MAC addresses are deleted), the code was modified only to introduce some LOG_WARNING:
The text was updated successfully, but these errors were encountered:
Tested 0.7.0-rc8 f28627c and I confirm that switching an output in inverted mode now works as expected.
But on boot it is still at ON state, that it means LOW level in case of cold boot and last logic level in case of warm boot (hardware output and firmware states not matching, see issue #476).
Perform all steps below and tick them with [x]
Describe the bug
I tested some GPIO outputs with relay type and inverted mode: on boot they start in low level (ON) and, when I toggle them, the function gpio_set_output_value() always writes 0 to the pin for both states ON and OFF.
I have a WT32-SC01 Plus with openHASP 0.7.0-rc2 flashed.
To Reproduce
1- Set up a GPIO output with relay type and inverted mode, restart the plate.
2- Measure the pin voltage level or call the command output## with no payload (## is the pin number)
3- Toggle it and measure the pin voltage or insert in the function gpio_set_output_value() an instruction that logs the value written on the digital output
Expected behavior
Screenshots or video
Here's a screenshot of the serial console (IP and MAC addresses are deleted), the code was modified only to introduce some LOG_WARNING:
The text was updated successfully, but these errors were encountered: