Hi Sara/Rui,
Hope everything is well to you today.
I have a project which is similar from your ebook project #1 on arduino applications using bluetooth.
The project goes like this, when phone is connected on to arduino via bluetooth. The arduino will inform that the status of LED is either on or off and disables button in the phone application.
I am stuck at the Serial.println(ledStatus). Using serial bluetooth app, I saw that my phone receives data from arduino.
But how I can fulfill my objective on MIT AI2 block procedures.
As usual big thanks for our help.
Regards,
Ronaldo
Hi Ronaldo.
You can use the same procedure we use in Project 5. We display temperature readings, but you can display the LED status instead.
Basically, you need to drag a label into your designer. Fore example, buttonStatusLabel that will show the LED state.
Then, initialize a global variable to hold the LED state.
Then, the logic can be similar to the one we use in Project 5.
I really recommend taking a deep look at Project 5 and see if it can help with your project.
Let me know if you need further help.
Regards,
Sara