Description
M2M Demo – Lesson #3 : Reading the state of a Button
In this fourth tutorial, we will learn how the digital input pins on the ADK board can be used to detect the state of a button (you can use a switch too). This fourth lesson is usefull to understand how to read the current state of a button and transmit the state change to an Android application. The Android application receiving the state change will propagate the change in a TextView and your Android device’s vibrator will be triggered to vibrate whenever the button is pressed.
You will find :
– Arduino sketch
– Android code
– Documentation including : List of electronic components, Circuit diagram , Arduino sketch, Android main class script, and a photo of the result.
You can enhance the code or create new one 🙂
As usual all code is documented.
Best regards,
boOpGame Team