Edit: It seems those pins are not usable as analog pins. At least analogRead only returns NaN while digitalRead works fine. So short of an I²C IO expander or something like that the easy thing to do is 2 additional buttons.
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.
@Gordon is the pin numbering on this page: https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html?cp=5_0_0_6_0_1#qfn48 the same as on https://www.espruino.com/Bangle.js2+Technical#gpio?
If so 42 and 43 seem to be analog inputs and I could attach multiple buttons to just one of those pads with resistor dividers to detect which one is pressed. So all the buttons I want on one pin and software controllable flashlight as well.
Edit: It seems those pins are not usable as analog pins. At least
analogRead
only returns NaN whiledigitalRead
works fine. So short of an I²C IO expander or something like that the easy thing to do is 2 additional buttons.