An example code will appear, we have to modify it (I already did so you can just copy it from below) but, if you try to modify it, keep in mind that the code is sensitive to caps. I faced this problem while editting my code and I had to run thru the code checking what was caps and what was not. Beside that, add the token in the space I left otherwise your Blynk wont be able to make a connection.
Code:
Almost there, now we just have to make the connexion. I tried doing it on my mac but it is way easier to do it on a windows. You can follow these steps:
1. Open command prompt
2. Copy the following
C:\Users\your username here>Documents\Arduino\libraries\Blynk\scripts\blynk-ser.bat -c COM3
(check which COM (port you are connected to)
3. Click enter and the conexion will start.
Now go back to Arduino IDE and click Upload.
Whenever I did this I had a conexion problem
Try disconecting and conecting, check your COM is correct, check if the board and port you have selcted is correct and the try uploading again.