Thank you both - it looks like that has worked. I think that I accidentally wrote to the register which switched the sensor to SPI mode, which is why I couldn't see it again.
Fortunately, a battery discharge followed by 48 hours in a drawer has reset the sensor, and it now appears to be working again.
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.
Thank you both - it looks like that has worked. I think that I accidentally wrote to the register which switched the sensor to SPI mode, which is why I couldn't see it again.
Fortunately, a battery discharge followed by 48 hours in a drawer has reset the sensor, and it now appears to be working again.