Coding 2 differrent firmwares on one ESP-CAM possible ?

Hello mates, and greetings from Germany,

I've a question:

Is it possible to code to complet and different codes on the same ESP-Cam ? I want to switch between a 3-pin-switch between those firmware. To understand what I really mean, here is an example:

For example, if I do not switch the 3-pin-switch, than the first code is apllied. If I switch the 3-pin-switch, than the other code is applied. Here is a code example:

// not switching the pin, the following codes is gonna run
#include "EEPROM.h"
int Test=0;
void setup();
{
Serial.println("yeaaah!!");
}
void loop();
{
Serial.println("on noooo :( ");
}


// switching the pin, than this code runs:
#include "FS.h"
int Test=0;
void setup();
{
Serial.println("wooops");
}
void loop();
{
Serial.println("ohhh yeahhhh : ");
}

No. However, you can write a program that does completely different things, depending on a switch setting that is read at startup.

1 Like

Okay thanks man.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.