Platforms to show: All Mac Windows Linux Cross-Platform

PhidgetIRMBS class

Superclass: PhidgetMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The Infrared Remote class lets you read and transmit command codes from infrared remotes that the majority of household appliances use.
Example
// read values from a ir Phidget
// MyIR is a subclass of PhidgetIRMBS with the events implemented.
// IR is a property of the window: IR As MyIR

IR = New MyIR
IR.open

// in MyIR:
Sub Attached() Handles Attached
System.DebugLog "Device attached: " + Me.DeviceSerialNumber.ToString
End Sub

Sub CodeReceived(code As String, bitCount As Integer, isRepeat As Boolean) Handles CodeReceived
System.DebugLog "code: " + code + ", " + "bitCount: " + bitCount.ToString
End Sub

Sub Error(errorCode As Integer, errorString As String) Handles Error
System.DebugLog "Error " + errorCode.ToString + ": " + errorString
End Sub

You can use this class to construct and transmit commands from scratch, or learn and retransmit codes from the remote controller of your appliance.
Subclass of the PhidgetMBS class.

Superclass PhidgetMBS

This class has no subclasses.

Blog Entries

Release notes

  • Version 26.5
    • Fixed transmitRaw in PhidgetIRMBS to pass correct count.

Some related classes:


The items on this page are in the following plugins: MBS Phidgets Plugin.


PhidgetIRCodeInfoMBS   -   PhidgetLCDMBS


The biggest plugin in space...