         
         self.valuePicker.delegate = self
         self.valuePicker.dataSource = self
+        
+        self.segmentVC = self.childViewControllers.first as? SGSevenSegmentViewController
     }
 
     override func didReceiveMemoryWarning() {


    @IBOutlet var valuePicker: UIPickerView!
    
    let pickerValues: [UInt8] = Array(0 ..< 16)
    
    override func viewDidLoad() {
        super.viewDidLoad()

    }
    
    func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
        let val = pickerValues[row]
        self.segmentVC?.display(value: val)
    }
}

