Disable GPIO
Posted: Wed Mar 15, 2017 4:25 pm
Hello,
I run the LED_PWM as an Sound output.
Due the noise I want to disable the Output, if I don't play any sound. How can I disable it?
REG_CLR_BIT(GPIO_PIN_MUX_REG[18], SLP_OE);
or this
gpio_set_direction(LS_IO, GPIO_MODE_INPUT);
doesn't work. I'm still able to play a sound via PWM.
Can anybody help me with this issue?
kind regards
Peter
I run the LED_PWM as an Sound output.
Due the noise I want to disable the Output, if I don't play any sound. How can I disable it?
REG_CLR_BIT(GPIO_PIN_MUX_REG[18], SLP_OE);
or this
gpio_set_direction(LS_IO, GPIO_MODE_INPUT);
doesn't work. I'm still able to play a sound via PWM.
Can anybody help me with this issue?
kind regards
Peter