Thanks to @Gordon, there is now a fix on the ESP32 if the pin > D15, so this should now work for D16 or D22, which ever pin you have connected too.
The firmware bin file can be fetched here:
http://www.espruino.com/binaries/travis/deee7d431ee31825fab762bf2c7ec2e86b994455/espruino_1v95_esp32.tgz
This is now working:
setWatch(function(e) {console.log("Button pressed",e);}, D22, { repeat: true, edge: 'rising' });
@Wilberforce started
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.
Thanks to @Gordon, there is now a fix on the ESP32 if the pin > D15, so this should now work for D16 or D22, which ever pin you have connected too.
The firmware bin file can be fetched here:
http://www.espruino.com/binaries/travis/deee7d431ee31825fab762bf2c7ec2e86b994455/espruino_1v95_esp32.tgz
This is now working: