pub fn split(self) -> Sets {
        let speaker = Speaker {
            speaker: self.speaker,
            enable: self.speaker_enable,
        };

        let stemma = Stemma {
            d3: self.d3,
            d4: self.d4,
        };

        let display = Display {
            tft_reset: self.tft_reset,
            tft_rd: self.tft_rd,
            tft_rs: self.tft_rs,
            tft_cs: self.tft_cs,
            tft_te: self.tft_te,

            tft_wr: self.tft_wr,
            tft_backlight: self.tft_backlight,
            lcd_data0: self.lcd_data0,
            lcd_data1: self.lcd_data1,
            lcd_data2: self.lcd_data2,

            lcd_data3: self.lcd_data3,
            lcd_data4: self.lcd_data4,
            lcd_data5: self.lcd_data5,
            lcd_data6: self.lcd_data6,
            lcd_data7: self.lcd_data7,
        };

        let touchscreen = Touchscreen {
            yd: self.touch_yd,
            xl: self.touch_xl,
            yu: self.touch_yu,
            xr: self.touch_xr,
        };

        let esp = Esp {
            cs: self.esp_cs,
            gpio0: self.esp_gpio0,
            busy: self.esp_busy,
            reset: self.esp_reset,
            rts: self.esp_rts,
        };

        let esp_uart = EspUart {
            tx: self.esp_tx,
            rx: self.esp_rx,
        };

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

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

        let sd = SdCard {
            cs: self.sd_cs,
            card_detect: self.sd_card_detect,
        };

        Sets {
            port: self.port,
            display,
            esp,
            light: self.light,
            i2c,
            sd,
            speaker,
            spi,
            stemma,
            touchscreen,
            esp_uart,
            d13: self.d13,
            neopixel: self.neopixel,
        }
    }
/// Split the device pins into subsets
Split the device pins into subsets
Split the device pins into subsets
pub fn split(self) -> Sets {
        let speaker = Speaker {
            speaker: self.speaker,
            enable: self.speaker_enable,
        };
        let stemma = Stemma {
            d3: self.d3,
            d4: self.d4,
        };
        let display = Display {
            tft_reset: self.tft_reset,
            tft_rd: self.tft_rd,
            tft_rs: self.tft_rs,
            tft_cs: self.tft_cs,
            tft_te: self.tft_te,
            tft_wr: self.tft_wr,
            tft_backlight: self.tft_backlight,
            lcd_data0: self.lcd_data0,
            lcd_data1: self.lcd_data1,
            lcd_data2: self.lcd_data2,
            lcd_data3: self.lcd_data3,
            lcd_data4: self.lcd_data4,
            lcd_data5: self.lcd_data5,
            lcd_data6: self.lcd_data6,
            lcd_data7: self.lcd_data7,
        };
        let touchscreen = Touchscreen {
            yd: self.touch_yd,
            xl: self.touch_xl,
            yu: self.touch_yu,
            xr: self.touch_xr,
        };
        let esp = Esp {
            cs: self.esp_cs,
            gpio0: self.esp_gpio0,
            busy: self.esp_busy,
            reset: self.esp_reset,
            rts: self.esp_rts,
        };
        let esp_uart = EspUart {
            tx: self.esp_tx,
            rx: self.esp_rx,
        };
        let spi = Spi {
            mosi: self.mosi,
            sck: self.sck,
            miso: self.miso,
        };
        let i2c = I2C {
            sda: self.sda,
            scl: self.scl,
        };
        let sd = SdCard {
            cs: self.sd_cs,
            card_detect: self.sd_card_detect,
        };
        Sets {
            port: self.port,
            display,
            esp,
            light: self.light,
            i2c,
            sd,
            speaker,
            spi,
            stemma,
            touchscreen,
            esp_uart,
            d13: self.d13,
            neopixel: self.neopixel,
        }
    }
pub fn split ( self ) -> Sets { let speaker = Speaker { speaker : self . speaker , enable : self . speaker_enable , } ; let stemma = Stemma { d3 : self . d3 , d4 : self . d4 , } ; let display = Display { tft_reset : self . tft_reset , tft_rd : self . tft_rd , tft_rs : self . tft_rs , tft_cs : self . tft_cs , tft_te : self . tft_te , tft_wr : self . tft_wr , tft_backlight : self . tft_backlight , lcd_data0 : self . lcd_data0 , lcd_data1 : self . lcd_data1 , lcd_data2 : self . lcd_data2 , lcd_data3 : self . lcd_data3 , lcd_data4 : self . lcd_data4 , lcd_data5 : self . lcd_data5 , lcd_data6 : self . lcd_data6 , lcd_data7 : self . lcd_data7 , } ; let touchscreen = Touchscreen { yd : self . touch_yd , xl : self . touch_xl , yu : self . touch_yu , xr : self . touch_xr , } ; let esp = Esp { cs : self . esp_cs , gpio0 : self . esp_gpio0 , busy : self . esp_busy , reset : self . esp_reset , rts : self . esp_rts , } ; let esp_uart = EspUart { tx : self . esp_tx , rx : self . esp_rx , } ; let spi = Spi { mosi : self . mosi , sck : self . sck , miso : self . miso , } ; let i2c = I2C { sda : self . sda , scl : self . scl , } ; let sd = SdCard { cs : self . sd_cs , card_detect : self . sd_card_detect , } ; Sets { port : self . port , display , esp , light : self . light , i2c , sd , speaker , spi , stemma , touchscreen , esp_uart , d13 : self . d13 , neopixel : self . neopixel , } }
Split the device pins into subsets
Split the device pins into subsets
self
self