You are on page 1of 1

int Set=0; int Reset=0; int VE=0; void setup () { pinMode (1, INPUT); pinMode (2, INPUT); pinMode

(3, OUTPUT); }

//ENTRADA A //ENTRADA B //SALIDA S

void loop () { Biestable (); } void Biestable () { if (Set==1 && VE==0 && Reset==0) { digitalWrite (3,HIGH); VE=1; } if (Reset==1 && VE==1) { digitalWrite (3, LOW); VE=0; } }

You might also like