Difference between revisions of "Neon Lamp"
(Created page with "{| style="width: 1000px;" |- | ==Outline== 600px|center Make a neon lamp, or named marquee, and makes 6 LEDs flash in turn. Suitable kits:...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 44: | Line 44: | ||
==Programming== | ==Programming== | ||
===Required Program Blocks=== | ===Required Program Blocks=== | ||
− | [[ | + | [["LED prepare" program block]] |
<br> | <br> | ||
− | [[ | + | [["ColorLED control" program block]] |
<br> | <br> | ||
− | [[ | + | [["Delay" program block]] |
<br> | <br> | ||
− | [[ | + | [["Every time" program block]] |
<br> | <br> | ||
− | [[ | + | [["Calculate" program block]] |
===Programming Thought=== | ===Programming Thought=== | ||
Line 71: | Line 71: | ||
Q: The program seems too long, is there some way to simplify it? | Q: The program seems too long, is there some way to simplify it? | ||
<br> | <br> | ||
− | A: The required new program blocks are [[ | + | A: The required new program blocks are [["Every time" program block]] and [["Calculate" program block]] |
<br> | <br> | ||
<br> | <br> | ||
Line 84: | Line 84: | ||
==Technical Specification== | ==Technical Specification== | ||
*You need to use API library to drive. | *You need to use API library to drive. | ||
− | *For details, please refer to [[ | + | *For details, please refer to [[mCookie-LED_Matrix]]. |
==Related Cases== | ==Related Cases== |
Latest revision as of 10:29, 9 October 2016
ContentsOutlineMake a neon lamp, or named marquee, and makes 6 LEDs flash in turn. Suitable kits: mCookie102, mCookie202, mCookie302
Module BillModule
Other Equipment
Module SetupLook at the New Module6 LED matrix
ProgrammingRequired Program Blocks"LED prepare" program block
Programming ThoughtThe arrange of the 6 LEDs of the matrix. In order to implement neon lamp effect, we need to make the 6 LEDs flash in order. Start Programming1. LED prepare, controls the first 3 LEDs to light in order of which the numbers are 1,3,5. 2. Control the last 3 LEDs to light in order the number of which are 6, 4, 2.
1. LED prepare, and control the first 3 LEDs with every time program block. 2. Then use the every time program block to control the last 3 LEDs. Technical Specification
Related CasesQ&AQ: Are the LEDs in 6 LED matrix all same?
|