s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
931 stars 214 forks source link

Easy new board pins #414

Closed rjsachse closed 7 months ago

rjsachse commented 7 months ago

Just done a bit of code cleanup to make it easier to add new boards. Every new release I have to change a few files to add ws2812, change i2c pins, add my camera pins, add SD MMC pins. this way I just have to add the board pins file and change board to my XENOCAM

s60sc commented 7 months ago

Im ok with this apart from removing the I2C defines from telemetry.cpp which would hinder other users. leave them in but surround them with an #ifndef using a define from camera_pins.cpp to override them

rjsachse commented 7 months ago

Also, do you think it would be good to have #ifdef in mqtt, certs, telemetry etc files, so no reed to remove the files to make the firmware smaller. Just need to change true and false in appglobals