-
• #2
I think it's enough just to define a variable called
ir_adc
in Blockly (assuming you already have your code uploaded to the MDBT42Q). Either that or pull in the"A JavaScript "+"Expression"
and just type inir_adc
However it sounds like you want to make a block for it in the IDE code itself? If so it's as easy as just making the block return the next
ir_adc
- for instance you could just use this: https://github.com/espruino/EspruinoWebIDE/blob/gh-pages/blockly/blockly_ble.js#L376-L385
Hi!
I have some problems.
Here is my code for Espruino web ide. ( To get IR Sensor value)
So if I upload this code to robot,
I can get my ir_adc value.
But I want to get ir_adc value in my blockly_something.js.
Is there a solution to get IN-ROBOT value at my vscode SUPERCOOL?
Thank you.