Object «brick»
Last updated
Was this helpful?
Was this helpful?
brick.accelerometer();brick.accelerometer();brick.battery();brick.battery();brick.colorSensor("video1");brick.colorSensor("video1");brick.display();brick.display();brick.encoder(portName);
brick.encoder("portName");brick.encoder(portName);
brick.encoder("portName");brick.encoder(E1); // encoder call on port E1
brick.encoder("E2"); // encoder call on port E2brick.encoder(E1); # encoder call on port E1
brick.encoder("E2"); # encoder call on port E2brick.getStillImage();brick.getStillImage();brick.gyroscope();brick.gyroscope();brick.keys();brick.keys();brick.led();brick.led();brick.lineSensor();brick.lineSensor();brick.motor(motorName);
brick.motor("motorName");brick.motor(motorName);
brick.motor("motorName");brick.motor(M1) // motor call on port M1
brick.motor("M2") // motor call on port M2brick.motor(M1) # motor call on port M1
brick.motor("M2") # motor call on port M2brick.objectSensor();brick.objectSensor();brick.playSound("filename");brick.playSound("filename");brick.playSound("media/sound.mp3"); // Play the sound.mp3 file in the media folderbrick.playSound("media/sound.mp3"); # Play the sound.mp3 file in the media folderbrick.say(string);brick.say(string);brick.say("Привет, я ТРИК");brick.say("Привет, я ТРИК");brick.sensor(portName);
brick.sensor("portName");brick.sensor(portName);
brick.sensor("portName");brick.sensor(A1) // call a sensor on port A1
brick.sensor("A2") // call a sensor on port A2brick.sensor(A1) # call a sensor on port A1
brick.sensor("A2") # call a sensor on port A2brick.stop();brick.stop();