I’m using Arudino and Pixy2 to make a line tracking AGV for my project. I use barcodes to stop and load luggage. It may be falsely detected in a place where there is no barcode. So I’m programming to read two barcodes at the same time, but it doesn’t work.
The one-read code is
if (pixy.line.barcodes-> m_code == 1)
The code for simultaneous reading is
if (pixy.line.barcodes-> m_code == 1) && if (pixy.line.barcodes-> m_code == 5).
Reading at the same time does not work, is there a way? ??