SD Card 1bit mode (with Generic Custom Component?)

Following up from my other thread (here) I’m wanting to configure my ESP32-CAM-MB to also include A motion sensor.

To do this I think I can use the SD card in 1bit mode (more info here) which frees uo pin #12 & #13. But not 100% sure how to include this within ESPHome.

Reading through ESPHome documentation - I think the Generic Custom Component is what I need but I just need a steer on including this into ESPHome.


Or alternatively, modifying the code from my original post (this) to include with ESPHome.