BRLAB DOCS
HomeTutorialsHardware
Control Relays with the Nextion HMI and Arduino
Control Relays with the Nextion HMI and Arduino
  • Introduction
  • GETTING STARTED
    • What You Will Need
    • Wiring
  • HMI GUI
    • Nextion HMI Setup
    • GUI Design
    • HMI Code
    • Load Code on the HMI
  • NANO EVERY CODE
    • Task to Complete
    • Writing the Code
      • Comment Header
      • Define Global Variables
      • void setup()
      • void loop()
      • void serial_input()
    • Application Code
    • Files
Powered by GitBook
On this page
  1. NANO EVERY CODE

Writing the Code

This is the fun part. This is also the part were you can learn the most as there are many different ways that code can be written in order to accomplish the same task.

We will work through each part of the code, breaking it down and discussing what it does.

The code in its entirety will be shown at the end of the tutorial. Feel free to copy and paste it. Also feel free to edit it to work to your need.

PreviousTask to CompleteNextComment Header

Last updated 2 years ago