I am trying to essentially blink an LED in ULP with the circuit setup so that the GPIO is a current drain. This is working fine except that the off mode is still operating at ~2.1V when I'm expecting 0V. This is my code using the RiscV example as a template :
Code: Select all
for(int i = 11; i < 15; ++i) //Cycle through GPIO 11-14
{
example_ulp_gpio_init(i);
example_ulp_gpio_output_enable(i);
example_ulp_gpio_set_output_mode(i,1);
wait(300);
example_ulp_gpio_output_disable(i);
example_ulp_gpio_input_disable(i);
example_ulp_gpio_pullup_disable(i);
example_ulp_gpio_pulldown_disable(i);
example_ulp_gpio_deinit(i);
wait(1000);
}
Cheers,
Dylan