@chuckmcknight
The <ir remote [A v] pressed> block only seems to appear in the Robots blocks when “Boards” is set to “mBot”.
I would guess that the IR sensor on the Me Orion would be able to decode the IR codes also, but it doesn’t look like the block to do this is built in.
@amethyst
I don’t have an Me Orion so I don’t know if this code will work, but this is the underlying Arduino code that is created by mBlock for the mBot using the ir sensor blocks. You could change the “MeMCore.h” to “MeOrion.h” (or some such) and try it? I’m sure the ports for the LEDs are wrong too. This code is looking for the “A” button to be pressed.
#include #include #include #include #include double angle_rad = PI/180.0; double angle_deg = 180.0/PI; MeIR ir; MeRGBLed rgbled_7(7, 7==7?2:4); void setup(){ ir.begin(); } void loop(){ if(ir.keyPressed(69)){ rgbled_7.setColor(0,150,0,0); rgbled_7.show(); } ir.loop(); }