webduino.module.IRLed
The IRLed Class.
IR LED (Infrared LED) is widely used for remote controls and night-vision cameras.
Table of Contents
Constructor
webduino.module.IRLed
-
board
-
encode
Parameters:
-
board
webduino.BoardThe board that the IRLed is attached to.
-
encode
StringEncode which IRLed used.
Methods
addListener
-
type
-
listener
Add a listener for a certain type of event.
Parameters:
-
type
StringEvent type.
-
listener
FunctionEvent listener.
emit
-
type
-
object,...
Emit an event of certain type.
Parameters:
-
type
StringEvent type.
-
[object,...]
Object optionalEvent object(s).
listeners
-
type
Return the listener list bound to certain type of event.
Parameters:
-
type
StringEvnet type.
on
-
type
-
listener
Alias for EventEmitter.addListener(type, listener)
Parameters:
-
type
StringEvent type.
-
listener
FunctionEvent listener.
once
-
type
-
listener
Add a one-time listener for a certain type of event.
Parameters:
-
type
StringEvent type.
-
listener
FunctionEvent listener.
removeAllListeners
-
type
Remove all listeners of certain type.
Parameters:
-
type
StringEvent type.
removeListener
-
type
-
listener
Remove a listener for certain type of event.
Parameters:
-
type
StringEvent type.
-
listener
FunctionEvent listener.
send
-
code
Send IR code.
Parameters:
-
code
StringHexadecimal String to send.
setMaxListeners
-
n
Set maximum number of listeners that is allow to bind on an emitter.
Parameters:
-
n
NumberNumber of listeners.
updateEncode
-
code
Update code.
Parameters:
-
code
StringHexadecimal to update.