Re: help with using registers to chagne pin dirrections and states.
Posted: Sat Nov 09, 2024 8:16 pm
I can change the mode easy enough with I can change the mode easy enough with GPIO_MODE_INPUT_OUTPUT_OD
but I'm still not able to find the way to change directions when using bundles. Seems if I write low, the device can not talk ( good ) if I pull high the device cant talk ( good) but I can not write to the bus now.
To clarify.
I want to use the bundles for accuracy and speed.
using GPIO_MODE_INPUT_OUTPUT I can write to the bus high or low. but cna not change to input
using GPIO_MODE_INPUT_OUTPUT_OD I can allow the other device to write, and I can stop the device from writing but can not write to the bus.
maybe there is a way to change the bundle to GPIO_MODE_INPUT_OUTPUT_OD and back to GPIO_MODE_INPUT_OUTPUT after its set up?
like a ee register for od ?
but I'm still not able to find the way to change directions when using bundles. Seems if I write low, the device can not talk ( good ) if I pull high the device cant talk ( good) but I can not write to the bus now.
To clarify.
I want to use the bundles for accuracy and speed.
using GPIO_MODE_INPUT_OUTPUT I can write to the bus high or low. but cna not change to input
using GPIO_MODE_INPUT_OUTPUT_OD I can allow the other device to write, and I can stop the device from writing but can not write to the bus.
maybe there is a way to change the bundle to GPIO_MODE_INPUT_OUTPUT_OD and back to GPIO_MODE_INPUT_OUTPUT after its set up?
like a ee register for od ?