Lesson 26--Microduino 5*7 Lattice Dynamic Display

来自Microduino Wikipedia
Jasonsheng讨论 | 贡献2014年3月26日 (三) 13:17的版本 (Created page with "{{Language|第二十六课--Microduino 5*7点阵动态显示}} {| style="width: 800px;" |- | ==Objective== This tutorial will display a image dynamically using 5*7 LED lattice...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
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 dispaly tiem, 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.
    • 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