I have set up an nrf cloud and can control the led on pca10056 using the nrfcloud so configuring the gpio(pin no 7(Port P0.7))is becoming a problem.Can u provide me with a code to configure the gpio to switch it on and off from the cloud.
I have set up an nrf cloud and can control the led on pca10056 using the nrfcloud so configuring the gpio(pin no 7(Port P0.7))is becoming a problem.Can u provide me with a code to configure the gpio to switch it on and off from the cloud.
sorry pin no 7(P0.17).
Hi,
My recommendation is that you start with the ble_app_blinky example, and modify this to control the pin of your choice. By default, it will control LED3 on the nRF52840-PDK, by following the testing instructions described here. You will have to modify the on_write()
handler in ble_lbs.c, to set/clear your GPIO using the GPIO abstraction functions.
Note that P0.17 on the nRF52840-PDK is connected to the memory chip over QSPI. If you want to connect the pin to the GPIO headers, you need to disconnect it from the memory chip and connect it to the header, as described on this page.
Best regards,
Jørgen