Java in Processing Return To Default Code Help
ChelseaByers
Posts: 1
Hi guys!
I am dabbling in RFID for a project I'm working on. Basically speaking, I have designed an application for a company who sells product. This application will include a TV screen and an RFID reader near their product. When a customer places a product (with a chip in it) on the RFID reader pad, the TV switches from a default video to information about that product. Super simple. The problem is that when I remove the product (and chip) from the reader I want it to default back to the video that was playing and can't seem to get the code to understand that.
I am currently running the RFID reader through Processing (in Java mode) using IF ELSE statements, though this may not be the best way to go. My question is if you could help provide the best code to try to get the RFID reader to default back to a video when no chip is present in its' vicinity.
If you don't know personally, any direction towards someone you know who could possibly help me would be greatly appreciated.
Thank you so, so much for any help!
Chelsea
I am dabbling in RFID for a project I'm working on. Basically speaking, I have designed an application for a company who sells product. This application will include a TV screen and an RFID reader near their product. When a customer places a product (with a chip in it) on the RFID reader pad, the TV switches from a default video to information about that product. Super simple. The problem is that when I remove the product (and chip) from the reader I want it to default back to the video that was playing and can't seem to get the code to understand that.
I am currently running the RFID reader through Processing (in Java mode) using IF ELSE statements, though this may not be the best way to go. My question is if you could help provide the best code to try to get the RFID reader to default back to a video when no chip is present in its' vicinity.
If you don't know personally, any direction towards someone you know who could possibly help me would be greatly appreciated.
Thank you so, so much for any help!
Chelsea
Comments
if (condition 1) {
}
else if (condition 2) {
}
else (condition 3) {
}