 	}
 }
 
-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

    }

    switch(cmdId) {
    case Command.Zero.rawValue:
        powerOff()
    case Command.One.rawValue:
        yellow()
    case Command.Two.rawValue:
        green()
    default:
        throw Abort.badRequest

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

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