Device/Board: nRF5340 DK
Application: Mesh Light (Bluetooth Mesh Network)
Use Case:
I am currently working on a Bluetooth Mesh network using the nRF5340 DK. My goal is to control a laser module in addition to LED0 on the board. I have been using the mesh_light example application as it fits my mesh network requirements.
Issue:
I am trying to enable a GPIO pin to control the laser module, similar to how LED0 is controlled in the mesh_light application. However, I am having trouble configuring the GPIO port to function as an output pin for the laser module. The laser module should be triggered along with LED0.
Steps Taken:
I modified the code to enable GPIO pin P0.16 (or another suitable pin) as an output pin.
I followed the typical GPIO configuration steps:
gpio_pin_configure(dev, PIN, GPIO_OUTPUT);
Despite these changes, the laser module does not turn on as expected when LED0 is triggered in the mesh network.
Expected Outcome:
I expect the laser module connected to the specified GPIO pin to turn on and off in synchronization with LED0 when the mesh network sends a signal.
ASSIST NEEDED FOR :
Can you provide guidance on correctly enabling a GPIO port as an output pin for this use case?
Are there any specific configurations or settings for GPIO pins in the mesh_light application that I may be missing?
Is there a recommended approach to integrating external devices like laser modules into the Bluetooth Mesh network in this way?
Logs/Debug Information:
If necessary, I can provide debug logs or configuration files to help with troubleshooting.