We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d7c890 commit d379264Copy full SHA for d379264
src/lib/ruby-generator/ev3.js
@@ -65,6 +65,14 @@ export default function (Generator) {
65
return `ev3_button_pressed(${port})\n`;
66
};
67
68
+ Generator.ev3_getDistance = function () {
69
+ return ['ev3_distance', Generator.ORDER_ATOMIC];
70
+ };
71
+
72
+ Generator.ev3_getBrightness = function () {
73
+ return ['ev3_brightness', Generator.ORDER_ATOMIC];
74
75
76
Generator.ev3_beep = function (block) {
77
const note = Generator.valueToCode(block, 'NOTE', Generator.ORDER_NONE) || null;
78
const time = Generator.valueToCode(block, 'TIME', Generator.ORDER_NONE) || null;
0 commit comments