-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Input Output with opend drain support #7022
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
Comments
@P-R-O-C-H-Y can you please help with triaging and possibly answering this one? Thanks. |
Hi @Rafinha29, even the option is not listed in the |
any news @Rafinha29? |
Sorry I didn't have the time to try it yet, finally I used two GPIO |
@Rafinha29 I am closing this as there is no reply from you for a long time. If you still need some help, feel free to reopen this :) |
Board
ESP32
Device Description
DevkitC
Hardware Configuration
none
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
I want to use the "Input output with open drain" option for GPIO configuration but its not listed in the options, from https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-gpio.h
//GPIO FUNCTIONS
#define INPUT 0x01
// Changed OUTPUT from 0x02 to behave the same as Arduino pinMode(pin,OUTPUT)
// where you can read the state of pin even when it is set as OUTPUT
#define OUTPUT 0x03
#define PULLUP 0x04
#define INPUT_PULLUP 0x05
#define PULLDOWN 0x08
#define INPUT_PULLDOWN 0x09
#define OPEN_DRAIN 0x10
#define OUTPUT_OPEN_DRAIN 0x12
#define ANALOG 0xC0
Can I pass to the pinMode() function something like "(OUTPUT | OPEN_DRAIN ) ?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: