 	}
 }
 
-enum Command: Int {
-    case Zero
-    case One
-    case Two
+enum Command {
+    static let Zero = 0
+    static let One = 1
+    static let Two = 2
 }
 
 let gpioLib = GPIOLib.sharedInstance

let list: [GPIOName] = [.P20, .P26]
let ports = gpioLib.setupOUT(ports: list, for: .RaspberryPi2)

func status(_ port: GPIO?) -> Int {
    var value = 0
    port.then{ value = $0.value }
    return value
}

func yellow() {
    if (status(ports[.P20]) == 0) {
        gpioLib.switchOn(ports: [.P20])
    } else {
        gpioLib.switchOff(ports: [.P20])

}

func green() {
    if (gpioLib.status(ports[.P26]) == 0) {
        gpioLib.switchOn(ports: [.P26])
    } else {
        gpioLib.switchOff(ports: [.P26])
