The problem is that the actual console (what you'd have on the left of the Web ide) is moving to bluetooth.
If you just want to control an led you can send the string "digitalWrite(LED3,1);\n" directly over bluetooth and it will be executed.
"digitalWrite(LED3,1);\n"
However if you want to receive data then you'll have to move the console out of the way. In onInit, just add USB.setConsole ()
USB.setConsole ()
Dear Gordon, I add the USB.setConsole () now my code is working good. by the way may i know is this code mean?
Thank You
@jacklee 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.
The problem is that the actual console (what you'd have on the left of the Web ide) is moving to bluetooth.
If you just want to control an led you can send the string
"digitalWrite(LED3,1);\n"
directly over bluetooth and it will be executed.However if you want to receive data then you'll have to move the console out of the way. In onInit, just add
USB.setConsole ()