pub fn split(self) -> Sets {
        let analog = Analog {
            a0: self.a0,
            a1: self.a1,
            a2: self.a2,
            a3: self.a3,
            a4: self.a4,
            a5: self.a5,
        };

        let dotstar = Dotstar {
            ci: self.dotstar_ci,
            di: self.dotstar_di,
            nc: self.dotstar_nc,
        };

        let spi = SPI {
            sck: self.sck,
            mosi: self.mosi,
            miso: self.miso,
        };

        let i2c = I2C {
            sda: self.sda,
            scl: self.scl,
        };

        let usb = USB {
            dm: self.usb_dm,
            dp: self.usb_dp,
        };

        let uart = UART {
            rx: self.d0,
            tx: self.d1,
        };

        Sets {
            analog,
            dotstar,
            spi,
            i2c,
            usb,
            uart,
            port: self.port,
        }
    }
/// Split the device pins into subsets
Split the device pins into subsets
Split the device pins into subsets
pub fn split(self) -> Sets {
        let analog = Analog {
            a0: self.a0,
            a1: self.a1,
            a2: self.a2,
            a3: self.a3,
            a4: self.a4,
            a5: self.a5,
        };
        let dotstar = Dotstar {
            ci: self.dotstar_ci,
            di: self.dotstar_di,
            nc: self.dotstar_nc,
        };
        let spi = SPI {
            sck: self.sck,
            mosi: self.mosi,
            miso: self.miso,
        };
        let i2c = I2C {
            sda: self.sda,
            scl: self.scl,
        };
        let usb = USB {
            dm: self.usb_dm,
            dp: self.usb_dp,
        };
        let uart = UART {
            rx: self.d0,
            tx: self.d1,
        };
        Sets {
            analog,
            dotstar,
            spi,
            i2c,
            usb,
            uart,
            port: self.port,
        }
    }
pub fn split ( self ) -> Sets { let analog = Analog { a0 : self . a0 , a1 : self . a1 , a2 : self . a2 , a3 : self . a3 , a4 : self . a4 , a5 : self . a5 , } ; let dotstar = Dotstar { ci : self . dotstar_ci , di : self . dotstar_di , nc : self . dotstar_nc , } ; let spi = SPI { sck : self . sck , mosi : self . mosi , miso : self . miso , } ; let i2c = I2C { sda : self . sda , scl : self . scl , } ; let usb = USB { dm : self . usb_dm , dp : self . usb_dp , } ; let uart = UART { rx : self . d0 , tx : self . d1 , } ; Sets { analog , dotstar , spi , i2c , usb , uart , port : self . port , } }
Split the device pins into subsets
Split the device pins into subsets
self
self