when I write ... In WebIDE it doesn't give me any hexadecimal character
What does it give you? Maybe try running in the left-hand side of the IDE as that prints the result of evaluating an expression.
You could also use the Linux shell:
echo "LED.toggle()\n" | od -A n -t x1 | tr -d " "
this writes but the led doesn't turn on.
That's odd - I did that it worked for me. Are you definitely using the MDBT42Q, with an up to date firmware? I seem to recall that the original firmware didn't have LED2 defined, so the code might have created an error when it was run.
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.
What does it give you? Maybe try running in the left-hand side of the IDE as that prints the result of evaluating an expression.
You could also use the Linux shell:
That's odd - I did that it worked for me. Are you definitely using the MDBT42Q, with an up to date firmware? I seem to recall that the original firmware didn't have LED2 defined, so the code might have created an error when it was run.
You could always just do:
because we know that the pin LED1 does exist.