Listing 2-1 – Example code generated with the Blynk Sketch Code Builder

Listing 2-1 shows the example code generated with the Blynk Sketch Code Builder for reading a virtual pin  with Arduino UNO and ESP8266. The ESP8266 works as the Wi-Fi shield for the Arduino:

/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets. Downloads, docs, tutorials: http://www.blynk.cc Sketch generator: http://examples.blynk.cc Blynk community: http://community.blynk.cc ...

Get ESP8266 Robotics Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.