Lesson 57--Programming Method Easy to Understand, Maintain and Revise

From Microduino Wiki
Jump to: navigation, search

Purpose

This course will introduce a new programming method in IDE, which makes it easier to understand, maintain and revise.

Device

  • Other hardware device
    • USB cable One
    • Breadboard jumper One box
    • LED light One

Introduction

Let's first look at the code. Take the code of RGB as an example. It's common when you have a long section of code, hard to find, maintain or revise.

MicroduinoIDESeperateCompile1.png

Program

[MicroduinoCodeingStyle]

Debugging

Step 1: Put LED functions displayed above into different tabs.

MicroduinoIDESeperateCompile2.png

Step 2: The format of each tab should be as follows:

MicroduinoIDESeperateCompile3.png

Step 3: These are revised and saved files. You only need to open ske.ino and can see all files. Also, you can delete, add or copy them to other folders.

MicroduinoIDESeperateCompile4.png


Result

This method of writing codes makes it easier to read.

Video