const void (*fp[])(void)
{
[]() {},
[]() {digitalWrite(2, 1); digitalWrite(3, 0);},
[]() {digitalWrite(2, 0); digitalWrite(3, 1);},
[]() {},
};
void setup()
{
Serial.begin(115200);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
digitalWrite(3,1);
}
void loop()
{
fp[digitalRead(4)+digitalRead(5)*2]();
}