Blynk Library

The first thing we will need to do is add the Blynk library to the code. This will simplify our code as it will take care of all of the logic for interfacing with the Blynk Cloud.

To add libraries to code click on the ribbon in the bottom left hand side of the IDE. This will bring up a new window with a large searchable list of community libraries that can be used. Most likely Blynk will be one that is listed on the first page.

Click on the Blynk library and select which project to add it too. You will want to add it to the project that you just created. In my case Blynk_Relay_Tutorial.

Once you add the library it will look like this at the top line of you code.

// Blynk Library
#include <blynk.h>

Last updated