Hi Arduino Family,
I have this project that I genuinely have no clue how to code. The projects consists of a Waveshare Barcode scanner (https://www.waveshare.com/barcode-scanner-module.htm), Arduino Uno R3, and LEDs. The idea of the project is for barcode to read two certain numbers in order to turn on one LED, if not the other LED turns on.
The basic code should run like this: (but I don't know how to code it.)
{
Code to connect barcode to Arduino software
Connect Barcode to Digital Pin 1
Connect RLED to Digital Pin 2
Connect NRLED to digital Pin 2
if barcode equals #0284000014235 or #078742040370
RLED turns on
wait 5 seconds
RLED turns off
else
NRLED turns on
wait 5 seconds
NRLED turns off
end
}
Please help in putting this in code, thank you very much Arduino family.