Lesson 7

One more change that will improve the tag unit is to change the code so that the unit only sends a tag when you push the button. In order to do that, we don't want to have the arduino send a tag if the button is currently pressed. We can tell the arduino to keep track of whether or not the button was pressed the last time we checked and compare that to whether or not the button is currently pressed. That way, when we press the button, we will only send one tag.

This is mainly a change to the code. So, let's go to the code.

Leave a Reply

Your email address will not be published. Required fields are marked *