Difference between revisions of "Lesson 26--Microduino 5*7 Lattice Dynamic Display"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language|第二十六课--Microduino 5*7点阵动态显示}} {| style="width: 800px;" |- | ==Objective== This tutorial will display a image dynamically using 5*7 LED lattice...")
 
 
Line 14: Line 14:
  
 
==Debug==
 
==Debug==
*Prepared Work:
+
*Prepared Work:
**Test Program:'''[[File:.led_5_7_move.zip]]'''
+
**Test Program: '''[[File:.led_5_7_move.zip]]'''
**Modulus software:'''[[File:PCtolCD.zip]]'''
+
**Modulus software: '''[[File:PCtolCD.zip]]'''
 
===Experiment one===
 
===Experiment one===
 
*Entire image switch
 
*Entire image switch
Line 23: Line 23:
 
Step 2:Compile it and select the board to download;
 
Step 2:Compile it and select the board to download;
 
*Note
 
*Note
**The first for() loop uses to delay the dispaly tiem, shorter time delay and shorter the display time.
+
**The first for() loop uses to delay the display time, shorter time delay and shorter the display time.
**In the first for() loop, there is another for() loop, it uses to dispaly a image. Function delay() uses to set the refresh rate.
+
**In the first for() loop, there is another for() loop, it uses to display a image. Function delay() uses to set the refresh rate.
 
**You can use the second for() loop to add more image, but need change the corresponding array data in function leddisplay().
 
**You can use the second for() loop to add more image, but need change the corresponding array data in function leddisplay().
  
 
===Experiment two===
 
===Experiment two===
 
*Move the image
 
*Move the image
*Principle:Use the left shift operation or right shift operation and for() loop to adjust the move speed.
+
*Principle: Use the left shift operation or right shift operation and for() loop to adjust the move speed.
Step 1:Open the test program;
+
Step 1: Open the test program;
Step 2:Compile it, select the board type and download;
+
Step 2: Compile it, select the board type and download;
 
*Note
 
*Note
 
**The first for() loop controls the movement,the second for() controls the speed and the third for() uses to display.
 
**The first for() loop controls the movement,the second for() controls the speed and the third for() uses to display.

Latest revision as of 08:33, 12 September 2016

Language: English  • 中文

Objective

This tutorial will display a image dynamically using 5*7 LED lattice, including move and switch the image.

Equipment

Debug

Experiment one

  • Entire image switch
  • Principle:Display specified character in a time slot, use the for() loop to finish the switch.

Step 1:Open the test program; Step 2:Compile it and select the board to download;

  • Note
    • The first for() loop uses to delay the display time, shorter time delay and shorter the display time.
    • In the first for() loop, there is another for() loop, it uses to display a image. Function delay() uses to set the refresh rate.
    • You can use the second for() loop to add more image, but need change the corresponding array data in function leddisplay().

Experiment two

  • Move the image
  • Principle: Use the left shift operation or right shift operation and for() loop to adjust the move speed.

Step 1: Open the test program; Step 2: Compile it, select the board type and download;

  • Note
    • The first for() loop controls the movement,the second for() controls the speed and the third for() uses to display.
    • Change the second for() loop to adjust the move speed.
    • Left shift operation "<<" controls up move, right shift operation ">>" controls down move.

Result

The first experiment completes the image switch, the second experiment completes the movement of image. Players can according to their own interest to do some more interesting animation.

Video