This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue with toggling I/O pins.

Hello.


I'am new to developing with The Thingy 52 and just trying out simple things.

I wanted to see if i could toggle/set one of the pins high from the code but havent had any succses. 

I have tried to achive this by setting the pin in the main() function according to the code below.

The pin i want to toggle is P0.02 on the thingy52 board but for som reason i get 3.3v  not on the P0.02 but the EXT1?

I know it may be a simple problem but i cant figure out what the issue is, mabey i'am treating it to much as a MPU and tasks like this is more complex then i thought it to be?

Just added my part of the code the rest is from the Thingy52 SDK

int main(void)
{
//......//
board_init();
thingy_init();

drv_ext_gpio_cfg_output(ANA_DIG0);
nrf_delay_ms(1000);
drv_ext_gpio_pins_toggle(ANA_DIG0);
nrf_delay_ms(10000);
//drv_ext_gpio_pins_clear(ANA_DIG0);

  for (;;)

// Richard

Related