Page 1 of 1

gpio_get_level

Posted: Sat Jan 06, 2018 3:29 pm
by pdelprat
hello,

gpio_get_level(0) return always 0 in my case, even if the red part of rgb led in esp-WROVER-KIT v3 blink.

Code: Select all

unsigned long ret_led_level()
{
    const unsigned long *myReg = (unsigned long *)(0x3FF44004); 
    return *myReg;
}
And this function repport level correctly.

Thanks,
Pascal

Re: gpio_get_level

Posted: Sun Jan 07, 2018 12:55 am
by WiFive
gpio_get_level returns input value and 0x3FF44004 returns output value. You would have to enable the input to have the output value loop back.