How to control the GPIO output? (Metawear CPRO)

nubnub
edited March 2017 in C++
The c++ API has information about how to read using the GPIO, however there's nothing about changing the output. In the docs I found "mbl_mw_gpio_set_digital_output", however the arguments are the board and the pin to change. How does one specify the output?
Does that funcion set the output to 1 and we have to use "mbl_mw_gpio_set_digital_output" to set it to 0 again?

Another question: There's only 1 PWM pin in the metawear CPRO, right? And is the only way to operate it using the haptic module?

Comments

This discussion has been closed.