//Initialize infrared receiver using digitalPin
irReceiver.connectInfrared(Pin: DigitalPin)
//Key value on infrared transmitter
irReceiver.irButton(button: IrButton)
//Return IR button value
//It will always return 0 when no button is pressed
irReceiver.returnIrButton()
github:https://github.com/mworkfun/pxt-RI-receiver.git
product: https://wiki.keyestudio.com/Ks0026_keyestudio_Digital_IR_Receiver_Module
- Add a reference for your blocks here
- Add "icon.png" image (300x200) in the root folder
- Add "- beta" to the GitHub project description if you are still iterating it.
- Turn on your automated build on https://travis-ci.org
- Use "pxt bump" to create a tagged release on GitHub
- On GitHub, create a new file named LICENSE. Select the MIT License template.
- Get your package reviewed and approved https://makecode.microbit.org/extensions/approval
Read more at https://makecode.microbit.org/extensions
- for PXT/microbit (The metadata above is needed for package search.)