Once you have set HID to "Keyboard & Media" in settings you'll have to repair with your phone, but then it should work well.
If you have Gadgetbridge then it may be possible for the app to send an 'intent' to take a picture, but I'm not sure there is an existing app that does that yet
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Did you see what it mentioned in the readme? https://banglejs.com/apps/?id=hidcam&readme
Once you have set HID to "Keyboard & Media" in settings you'll have to repair with your phone, but then it should work well.
If you have Gadgetbridge then it may be possible for the app to send an 'intent' to take a picture, but I'm not sure there is an existing app that does that yet