         return res
     }
 
-    func newInterruptThread() -> Thread {
+    private func newInterruptThread() -> Thread {
         
         let thread = try! Thread {
 

    var intFuncChange:((GPIO)->Void)? = nil


    init(name:String,
        id:Int) {
        self.name=name
        self.id=id

public struct VirtualSPI : SPIOutput{
    let dataGPIO,clockGPIO:GPIO

    public init(dataGPIO:GPIO,clockGPIO:GPIO){
        self.dataGPIO = dataGPIO
        self.dataGPIO.direction = .OUT
        self.dataGPIO.value = 0
