         let g = NSString(format: "%03d", Int(slitColor.getGreen()))
         let b = NSString(format: "%03d", Int(slitColor.getBlue()))
         
-        NSLog("\(h) - \(r).\(g).\(b)")
         uart("\(r).\(g).\(b)\n")
-        
       }
     }
     prev_deg = current_deg

      }
    }
    
    NSLog("Konashi.isConnected:\(Konashi.isConnected())")
    
    Konashi.shared().connectedHandler = {
      NSLog("CONNECTED");
    }
    
    Konashi.shared().readyHandler = {
      NSLog("READY");
      
      Konashi.uartMode(KonashiUartMode.Enable, baudrate: KonashiUartBaudrate.Rate9K6)


  override func viewDidLoad() {
    super.viewDidLoad()
    
    // 画面上のLEDの準備
    let count = Double(slits_count)
    for i in 0..<slits_count {
      slit_degs += [360.0/count*Double(i)]
