-->
Page 1 of 1

GPIO question

PostPosted: Sat Dec 06, 2014 12:23 pm
by HolgerW
Hi,
i need GPIO13 on a ESP-03 module as simple output port, but it doesnt work.
I tried:
Code: Select all//Set GPIO to output mode
  PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_GPIO13);

  gpio_output_set(0, BIT13, BIT13, 0); //set GPIO low
  os_delay_us(5000);
  gpio_output_set (BIT13, 0, BIT13, 0); // set GPIO high


Any ideas ? Thanks.
Holger

Re: GPIO question

PostPosted: Sat Dec 06, 2014 1:01 pm
by alonewolfx2
your code is right and propably working normally but you cant see gpio difference because "os_delay_us(5000);" very very little. try this os_delay_us(2*1000*1000)

Re: GPIO question

PostPosted: Sat Dec 06, 2014 1:12 pm
by HolgerW
Thanks!
Yes right, 5ms is very fast .. it work now. Cool.

Holger