Esempio n. 1
0
func Elevator_set_door_open_lamp(value bool) {
	val := 0
	if value {
		val = 1
	}
	C.elev_set_door_open_lamp(C.int(val))
}
Esempio n. 2
0
func Elev_set_door_open_lamp(value int) {
	C.elev_set_door_open_lamp(C.int(value))
}
Esempio n. 3
0
func DoorOpen(value int) {
	C.elev_set_door_open_lamp(C.int(value))
}
Esempio n. 4
0
// CloseDoor closes the door
func CloseDoor() {
	mutex.Lock()
	C.elev_set_door_open_lamp(0)
	mutex.Unlock()
}
Esempio n. 5
0
// OpenDoor opens the door
func OpenDoor() {
	mutex.Lock()
	C.elev_set_door_open_lamp(1)
	mutex.Unlock()
}
Esempio n. 6
0
func Set_door_open_lamp(floor int) {
	C.elev_set_door_open_lamp(C.int(floor))
}
Esempio n. 7
0
func SetDoorLamp(value int) {
	C.elev_set_door_open_lamp(C.int(value))
}
Esempio n. 8
0
func liftDriver_SetDoorLamp(onOrOff bool) {
	C.elev_set_door_open_lamp(C.int(onOrOff))
}
Esempio n. 9
0
func LiftDriver_SetDoorLamp(onOrOff int) {
	C.elev_set_door_open_lamp(C.int(onOrOff))
}