Let's see how to run the project:
- After building the project, run it with this command:
pi@raspberrypi:~/blynk-library/linux $sudo ./blynk --token=ca7bed1c92214503a65de8e20164994f
- You should get an output that looks like this:
Output on console when running the project
- Tap the Play button on the toolbar. Now, you can turn on and off the LED by tapping the button. When you tap the button, the console will output the current value on the virtual pin V1.
- The following screenshot shows the console output when you tap the Button widget:
Console output while tapping Button widget