I am trying to turn the LED of the camera on or off. someone would have an example code which could work in parallel with the NFC, because I tried with the Advanced Camera library but suddenly the NFC does not work anymore.
Don't use that library. Try it with CameraEx or Camera2. If NFC stops working they it is likely a hardware limitation as the two features have nothing in common regarding the code.
Hello Erel and thanks for the reply. I cannot find an example to turn the led on and off with the CameraEx or camera library. I would like to be able to use the led of the camera as a flashlight.