Hi,
Just wanted to confirm that if you start the sd card in "1 wire" mode with: SD_MMC.begin("/sdcard", true)
you can then still have full control of the illumination LED
I have also included "pinMode(2, INPUT_PULLUP);" - I have not yet tested if this is actually needed on this board?
I have just implemented it in my security camera sketch and it works great.
see full code here:
https://github.com/alanesq/CameraWifiMotion
Thanks for the tip
May be of interest:
https://www.reddit.com/r/esp32/comments ... alk_to_an/
-----------------
Update:
Some additional info. on using 1-bit mode on the sd card to free up some io pins:
If you access the sd card in 1-bit mode with the command: SD_MMC.begin("/sdcard", true)
you can then use pins 12 and 13 as general io pins (although 12 must be low at boot)
You can also use the Flash LED on pin 4 no problem (it also stops it flashing when you access the sd card)
but, you have to define these pins as input or output after initialising the sd card as otherwise it re-configures them
There is also the possibility of soldering direct to some extra pins on the esp32-s module its self (possibilities? 16, 17, 9, 10, 11, 6, 7, 8)
and of course the rx and tx serial pins could be used as previously stated