• Hi!
    I have some problems.

    var ir_adc = [0, 0, 0, 0, 0];
    
    var ir_adc_loop = setInterval(function() {
      i2c.writeTo(0x0A, [1, 10]); i2c.writeTo(0x0A, [14]); var ir_i2c = i2c.readFrom(0x0A, 10);
      ir_adc = [((ir_i2c[0] * 256) + ir_i2c[1]),
            ((ir_i2c[2] * 256) + ir_i2c [3]), 
            ((ir_i2c[4] * 256) + ir_i2c [5]), 
            ((ir_i2c[6] * 256) + ir_i2c [7]), 
            ((ir_i2c[8] * 256) + ir_i2c [9])];
    }, 10);
    

    Here is my code for Espruino web ide. ( To get IR Sensor value)
    So if I upload this code to robot,

    >ir_adc
    =[38,44,43,41,41]
    

    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.

About

Avatar for user110706 @user110706 started