Hi,
I'm looking for some advice, still fairly new to this and trying to be as neat as possible with my coding.
I currently have a project with 4 RFID sensors. If the correct tag is on the correct sensor, when you push the submit button, it increases the count by 1 (using COUNT++;) and if all 4 have the correct tags then COUNT == numReaders; relay unlocks, 4 leds flash (one for each reader) and happy days,
If tags are in the wrong place but there is a tag for each reader, the number of correctly placed tags flash (because the count increases by 1 for every correctly placed tag.
If not every reader senses a tag, then I've got it so COUNT>numReaders and all the LEDs flash red. This is currently coded by COUNT++; COUNT++; COUNT++; COUNT++; COUNT++; to increase the count 5 for every reader that can't sense a tag. This is fine, but quite messy! I tried COUNT+5; instead but this doesn't work... is there a better way to write this to get the count to increase by 5 at a time?
Thanks
Timdr23