gpio_get_level

pdelprat
Posts: 10
Joined: Mon Sep 04, 2017 1:37 pm

gpio_get_level

Postby pdelprat » Sat Jan 06, 2018 3:29 pm

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

WiFive
Posts: 2064
Joined: Tue Dec 01, 2015 7:35 am

Re: gpio_get_level

Postby WiFive » Sun Jan 07, 2018 12:55 am

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.

Return to “Report Bugs”

Who is online

Users browsing this forum: No registered users and 1 guest