I can use gpio_output_set from gpio.h library:
to trigger a pin to HIGH, find the pin register, i.e. for IO4 it is BIT4 and:
Code: Select all
gpio_output_set(BIT4, 0, BIT4, 0);
Code: Select all
gpio_output_set(0, BIT4, BIT4, 0);
Code: Select all
gpio_output_set(BIT4, 0, BIT4, 0);
Code: Select all
gpio_output_set(0, BIT4, BIT4, 0);