Hands-On Internet of Things with Blynk by Pradeeka Seneviratne

Hands-On Internet of Things with Blynk by Pradeeka Seneviratne

Author:Pradeeka Seneviratne
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2018-05-24T04:46:37+00:00


Settings for working with virtual pin V1

Tap the back icon on the toolbar to go to the canvas.

You can use the same C++ project you built in the previous section (Slider) without making any modifications. The Step widget uses virtual pin V1 to write values on WiringPi pin 1, which is a PWM pin.

Run the C++ project with this command:

pi@raspberrypi:~/blynk-library/linux $sudo ./blynk --token=ca7bed1c92214503a65de8e20164994f

Then, start your Blynk app by tapping the play button on the toolbar. Tap the increase and decrease buttons to change the value between 0 and 1023. The brightness of the LED will change according to the value output by the Step widget:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.