Ok, it works! In fact I think that due to a copy/paste bug it was always going into the 'input floating' mode for analog reads anyway.
My guess is that the special 'analog' mode mentioned in the table actually just powers down/disables the schmitt trigger somehow. All the power saving notes say that you should switch pins to the analog state at startup, as it uses less power than 'input floating'.
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.
Ok, it works! In fact I think that due to a copy/paste bug it was always going into the 'input floating' mode for analog reads anyway.
My guess is that the special 'analog' mode mentioned in the table actually just powers down/disables the schmitt trigger somehow. All the power saving notes say that you should switch pins to the analog state at startup, as it uses less power than 'input floating'.
1 Attachment