Hi, can someone explain me how work the if else barcode detection on the pixy as exemple : if (pixy.line.barcodes->m_code==0)
pixy.line.setNextTurn(90); // 90 degrees is a left turn
// code==5 is our right-turn sign
else if (pixy.line.barcodes->m_code==5)
pixy.line.setNextTurn(-90); // -90 is a right turn
I tried to do the same but turn on the led when the barcode 1 is detected and turn off the led when barcode 2 is detected