Seems to work:
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v05.47 (c) 2019 G.Williams > >function getClockSource() { : return ["NONE","LSE","LSI","HSE"][((peek32(0x40021020)&768)>>8)]; :} =function () { ... } >getClockSource(); ="LSE" >
@Reinoud started
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.
Seems to work: