led 1 is off but p0.13 get 3v output , similarly led 1 is on p0.13 get 0v output, how to change it help me. similar for led 1 to led 4 respectively p0.13 to p0.16.
led 1 is off but p0.13 get 3v output , similarly led 1 is on p0.13 get 0v output, how to change it help me. similar for led 1 to led 4 respectively p0.13 to p0.16.
In nRF5 SDK for Mesh, the examples uses the simle_hal.c for this functionality. You can use the hal_led_pin_set() function to set the LED on or off.
/** * Sets the LED for the given PIN. * @param[in] pin LED pin number. * @param[in] value @c true for on, @c false for off. */ void hal_led_pin_set(uint32_t pin, bool value);
doubt1- simle_hal.c is only in switch example, its not in ctl and dimming example.
doubt2- my question was how can i set gpio pin low. because whenever we load program of ctl or dimming respective gpio pin gets 3v even leds not glow , i want to set this zero please help me out.
thank you so much and please reply fast.
please reply
please reply
Brainson said:leds not glow
Advised to use a transistor: https://devzone.nordicsemi.com/f/nordic-q-a/72305/not-able-to-get-output-as-expected-on-gpio-port-on-board-nrf52840-dk