That seems plausible - what worries me is the possibility that even with the diodes, there could still be a small current flow (due to the 0.7v drop across the diode) - you'd definitely want to use a schottky diode if you do this... I can't say I like this design though... I'd rather do it with a little discrete logic chip instead...
Are you using a Pico? There are a few pins that aren't broken out that can be accessed with careful soldering... this is a better solution if it's viable for you.
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.
That seems plausible - what worries me is the possibility that even with the diodes, there could still be a small current flow (due to the 0.7v drop across the diode) - you'd definitely want to use a schottky diode if you do this... I can't say I like this design though... I'd rather do it with a little discrete logic chip instead...
Are you using a Pico? There are a few pins that aren't broken out that can be accessed with careful soldering... this is a better solution if it's viable for you.