I have a 16x16 LED Matrix wired into pin 8 of an arduino mega. I also have 5 5mW lasers equally spaced around 2 sides of a square. On the other 2 sides, i have mounted a total of 10 Laser Receiver that output high when laser is detected and low when no laser is detected mounted opposite the lasers.
I want to light up an area of the LED matrix behind where the object landed in the square. I have sampled some code that displays Laser Detected or No laser detected to test the concept. I was thinking of doing these with if statements to check which lasers had been blocked by the object but not sure if there are better ideas. I attached a picture of the concept.
I don’t have a lot of experience with arduino, but have done other programming in VBA and very limited on working with LED Matrix. Any help is greatly appreciated.