Thanks!
Using a string is even simpler, I was kind of hang up on "what number should represent the selected channel".
A static var just feels slightly nicer looking than adding it after the class declaration.
But now the Espruino IDE doesn't like that (see the picture)
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.
Thanks!
Using a string is even simpler, I was kind of hang up on "what number should represent the selected channel".
A static var just feels slightly nicer looking than adding it after the class declaration.
But now the Espruino IDE doesn't like that (see the picture)
1 Attachment