Now, your Raspberry Pi is successfully connected with the Blynk cloud at https://www.blynk.cc/. The following steps show you how to use the app to control the LED attached to GPIO pin 18:
- Tap the Play button on the toolbar:
Tapping Play button on the toolbar
- This will switch you from edit mode to play mode, where you can interact with the hardware. The play button is replaced with a Stop button that allows you to go back to edit mode:
Application in play mode
- You can tap the chip icon (the icon like a microprocessor) to see the device status, whether it is online or offline. The following screenshot show that the Raspberry Pi is online:
Checking device status: Raspberry Pi is online
- If your Raspberry Pi is offline, the notification looks as shown in the following screenshot. There are several reasons it can go offline. Some of them are:
- Lost internet connection on router
- Lost Wi-Fi (or Ethernet) connection on Raspberry Pi
- Lost power on Raspberry Pi
- main.cpp is not executed
- There is a bug in main.cpp
Indicating the device is offline
- Tap BUTTON to turn the LED on and off. The button will act as a switch and hold its state until you tap it again:
Button states for ON and OFF
- You can tap the stop button and get back to edit mode.
- While in play mode, you won't be able to drag or set up new widgets on the canvas.