Description
Description: IR is an pair of infrared photoelectric. Also from M5Go Kit, Contains 1x infrared emitter and 1x receiver. IR remote control is widely used in consumer electronics,it can be used to operate devices such as a television set, DVD player, or other home appliance, from a short distance. Since this unit comes with emitter and receiver, you can practice not only on IR encode but also on IR decode. Product Features:- 1x infrared emitter
- 1x infrared receiver
- Distance ran ge: < 5m
- Software Development Platform: for , UIFlow(Blockly,Python)
- Two Le go-compatible holes
- Product Size: 32.2mm x 24.2mm x 8.9mm
- Product weight: 4.3g
- 1x IR Unit
- 1x Grove Cable
1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.
3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial Example: 1. for IDE The code below is incomplete. TO get the complete code, please click here. #include <M5Stack.h> // declaration int cur_recv_value = 0; // initialization M5.begin(); pinMode(ir_recv_pin, INPUT);// receiver pin pinMode(ir_send_pin, OUTPUT);// transmitter pin digitalWrite(ir_send_pin, 1);// send infrared light // read data cur_recv_value = digitalRead(ir_recv_pin);// read the status of receiverCopy to clipboardErrorCopied
2. UIFlow To get the complete code, please click