You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You need to call analogRead each time, so:

    var lightPin =  C1;
    setInterval(function() {
      console.log (analogRead(lightPin));
    }, 500);
    

    Also, Espruino is case-sensitive, so you need to use capital and non-capital letters in the right places...

About

Avatar for Gordon @Gordon started