BRLAB DOCS
HomeTutorialsHardware
IoT Relays with Particle and Blynk
IoT Relays with Particle and Blynk
  • Introduction
  • Getting Started
    • What You Will Need
    • Claim Your Particle Device
    • Setup Your Blynk Account
  • Creating the Web Dashboard
    • Template
    • Data Streams
    • Widgets
    • Widget Settings
    • Finished Web Dashboard
  • Creating the Mobile App
    • Blynk.App
    • Widgets
    • Widget Settings
  • The App Code
    • Particle Web IDE
    • Blynk Library
    • Writing The Code
      • Comment Header
      • Define Blynk Objects
      • Define Global Variables
      • Void Setup()
      • Void Loop()
      • BLYNK_WRITE()
    • Application Code
    • Control The World Around You
  • Resources
    • Blynk Documentation
    • Particle Documentation
Powered by GitBook
On this page
  1. The App Code
  2. Writing The Code

Comment Header

It is always good practice to have a comment header that describes what the application code does. This is also a good place to list out the Blynk data streams that you created for later reference.

For Example you can create a comment block as shown below.

/*----------------------------------------------------------------
Title: Blynk Relay Tutorial 
Written By: (Place Your Name Here)
Date Written: (Place Date here)
Description: This code was written to control 4 individual relays
on an Particle Argon Relay Shield using four switch widgets on a 
Blynk web interface and moblile app.

Blynk Data Streams:
Relay 1 (V0)
Relay 2 (V1)
Relay 3 (V2)
Relay 4 (V3)
----------------------------------------------------------------------*/
PreviousWriting The CodeNextDefine Blynk Objects

Last updated 2 years ago