     // TODO
     public var lightSensors: LightSensors? {
         get {
+            let outputs = callScalarMethod(kGetSensorReadingID, inputs: [UInt64]())
+            println(outputs)
             return LightSensors(left: 0, right: 0)
         }
     }

        var outputCount = UInt32(1)
        var outputValues = UnsafeMutablePointer<UInt64>(malloc(1*sizeof(UInt64)))
        
        let kr = IOConnectCallScalarMethod(dataPort, kSetLEDBrightnessID, inputValues, inputCount, outputValues, &outputCount)
        
        var outputs = [UInt64]()
        for i in 0..<outputCount {

import CoreGraphics

public class LMUController {
    private var dataPort: io_connect_t = 0
    
    private let kGetSensorReadingID: UInt32 = 0 // getSensorReading(int *, int *)
    private let kGetLEDBrightnessID: UInt32 = 1 // getLEDBrightness(int, int *)
    private let kSetLEDBrightnessID: UInt32 = 2 // setLEDBrightness(int, int, int *)
    private let kSetLEDFadeID: UInt32 = 3 // setLEDFade(int, int, int, int *)
    
    /**
    Initialize the connection to the LMU controller.
    
    :returns: Nil if it failed.
    */
    public init?() {
        let serviceObject = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleLMUController").takeUnretainedValue())
        
