update
This commit is contained in:
@@ -85,6 +85,11 @@ func TurnOff(deviceId int) int {
|
||||
return int(C.tdTurnOff(C.int(deviceId)))
|
||||
}
|
||||
|
||||
// Learns a device
|
||||
func Learn(deviceId int) int {
|
||||
return int(C.tdLearn(C.int(deviceId)))
|
||||
}
|
||||
|
||||
// Dim dims a device to a level (0-255)
|
||||
func Dim(deviceId int, level int) int {
|
||||
return int(C.tdDim(C.int(deviceId), C.uchar(level)))
|
||||
|
||||
Reference in New Issue
Block a user