Updated / complemented posts #7 and #8 (Edit 2020.0715-2140).
@Gordon, Bangle board .py file https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS.py includes incomplete/contradicting information in comments for the IO Extender Port assignments / usage. Working a second time thru the main board shows that he pin_led for the Heart Rate Monitor LED goes thru the K42 driver - makes more sense than my initial display based on the board file. (Btw, it would be nice to have also an .ioRd() like the .ioWr() to easily access the IO Expander. I tried to do with I2C1, but got varying values return that were inconclusive).
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.
Updated / complemented posts #7 and #8 (Edit 2020.0715-2140).
@Gordon, Bangle board .py file https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS.py includes incomplete/contradicting information in comments for the IO Extender Port assignments / usage. Working a second time thru the main board shows that he pin_led for the Heart Rate Monitor LED goes thru the K42 driver - makes more sense than my initial display based on the board file. (Btw, it would be nice to have also an .ioRd() like the .ioWr() to easily access the IO Expander. I tried to do with I2C1, but got varying values return that were inconclusive).